Filenames for custom vim-snippets snippets -
i've started using https://github.com/garbas/vim-snipmate
https://github.com/honza/vim-snippets
, having issues getting own snippets work.
my plugins managed vundler , i've created custom .vim/snippets
folder i've put own javascript.snippets
, loading correctly setup.
i create bunch of smaller snippet files like: javascript.karma.snippets
, javascript.angular.snippets
me organize them better. issue snippets not load unless in file named javascript.snippets
. i've looked through honza/vim-snippets
repo , noticed able namespace snippets way, not sure how configure system load different filenames.
the github repo has in faq, not know how check it:
check snippets file in scope either filetype matching path of snippet file or scope explicitly loaded.
i read docs again, file needs named javascript_angular.snippets
autoload:
from docs: taking "scopes" these options, looks in each snippets/ directory in 'runtimepath' files named scope.snippets, scope/*.snippets, or scope_*.snippets.
Comments
Post a Comment