fix the legacy SnipMate parser

Cease to struggle and you cease to live.

——Scotland/Thomas Carlyle

In recent days, vim will pop up the snipmate interpreter expiration warning, try to eliminate the warning.

Warning

The legacy SnipMate parser is deprecated. Please see :h SnipMate-deprecate.

More detailed messages:

The legacy parser, version 0, is deprecated. It is currently still the default
parser, but that will be changing. NOTE that switching which parser you use
could require changes to your snippets–see the previous section.
To continue using the old parser, set g:snipMate.snippet_version (see
|SnipMate-options|) to 0 in your |vimrc|.
Setting g:snipMate.snippet_version to either 0 or 1 will remove the start up
message. One way this can be done–to use the new parser–is as follows:
let g:snipMate = { ‘snippet_version’ : 1 }

Solution

Open .vimrc(usually ~/.vimrc), add abovementioned snippet to the end.

1
let g:snipMate = { 'snippet_version' : 1 }

Reference

  1. snipMate
  2. The legacy SnipMate parser is deprecated. Please see :h SnipMate-deprecate.