Merge pull request #691 from IonicaBizauKitchen/autocmd
Use autocmd to load the snippets.
This commit is contained in:
commit
5d4d1ba62b
@ -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`).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user