Keep the other solution too.
This commit is contained in:
parent
6b455624e8
commit
6f5ea6e6d4
@ -73,12 +73,10 @@ Additional snippets can be added to the current buffer with the
|
|||||||
`:UltiSnipsAddFiletypes` command followed by the snippet name without the
|
`:UltiSnipsAddFiletypes` command followed by the snippet name without the
|
||||||
"snippets" ending. For example, to add the JavaScript Jasmine snippets, run:
|
"snippets" ending. For example, to add the JavaScript Jasmine snippets, run:
|
||||||
`:UltiSnipsAddFiletypes javascript-jasmine`. To have this snippet loaded
|
`:UltiSnipsAddFiletypes javascript-jasmine`. To have this snippet loaded
|
||||||
everytime a JavaScript file is opened or created you can add this command to your
|
everytime a JavaScript file is opened or created you can add the command to your
|
||||||
`.vimrc` file:
|
-`.vim/ftplugin/javascript.vim` file. Another way is to add
|
||||||
|
`autocmd FileType js UltiSnipsAddFiletypes javascript-jasmine` in your `.vimrc`.
|
||||||
|
|
||||||
```vim
|
|
||||||
autocmd FileType js UltiSnipsAddFiletypes javascript-jasmine
|
|
||||||
```
|
|
||||||
|
|
||||||
For more see the UltiSnips docs (`:help UltiSnips`).
|
For more see the UltiSnips docs (`:help UltiSnips`).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user