Merge pull request #691 from IonicaBizauKitchen/autocmd

Use autocmd to load the snippets.
This commit is contained in:
Louis Pilfold 2016-03-04 15:24:45 +00:00
commit 5d4d1ba62b

View File

@ -74,7 +74,9 @@ Additional snippets can be added to the current buffer with the
"snippets" ending. For example, to add the JavaScript Jasmine snippets, run:
`:UltiSnipsAddFiletypes javascript-jasmine`. To have this snippet loaded
everytime a JavaScript file is opened or created you can add the command to your
`.vim/ftplugin/javascript.vim` file.
-`.vim/ftplugin/javascript.vim` file. Another way is to add
`autocmd FileType js UltiSnipsAddFiletypes javascript-jasmine` in your `.vimrc`.
For more see the UltiSnips docs (`:help UltiSnips`).