世上只有一件事比被人议论更糟糕,那就是没有人议论你。
——爱尔兰/奧斯卡·王尔德
最近几天,vim会弹出snipmate解释器到期警告,尝试消除该警告。
警告
The legacy SnipMate parser is deprecated. Please see :h SnipMate-deprecate.
打开更详细的警告信息如下:
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 }
解决方法
打开位于用户目录下的.vimrc
,添加上述提及到的片段到 rc 文件末尾.
1 | let g:snipMate = { 'snippet_version' : 1 } |
再次使用Vim编辑器,无警告弹出。
Reference
- snipMate
- The legacy SnipMate parser is deprecated. Please see :h SnipMate-deprecate.
- fix the legacy SnipMate parser