How to add new snippets to snipMate in VIM

后端 未结 6 568
遥遥无期
遥遥无期 2021-02-08 07:03

Ive just started using the sniptMate plugin for VIM and love it, however, since my collection of snippets isn\'t huge, I\'d like to be able to add new snippets dynamically rathe

6条回答
  •  日久生厌
    2021-02-08 07:29

    If you are using pathogen, you can write your own snippets without polluting the original ones. To do this, add your snippets to ~/.vim/bundle/mysnippets/snippets/*.snippets. FYI, mysnippets can be any name.

    Moreover, it's a convention to add a _.snippets file in that directory where you add snippets which should be available everywhere irrespective of the filetype.

提交回复
热议问题