Ultisnips: Snippet files created in wrong folder using UltiSnipsEdit

Created on 11 Jun 2016  路  4Comments  路  Source: SirVer/ultisnips

Let say I am working in the folder /home/me/myProject, my vim configuration folder is /home/me/.vim. I am currently working on a JavaScript file.

If I have an already /home/me/.vim/UltiSnips/javascript.snippets file and I do a :UltiSnipsEdit: I open and edit /home/me/.vim/UltiSnips/javascript.snippets.

If I do not have a /home/me/.vim/UltiSnips/javascript.snippets file and I do a :UltiSnipsEdit: I open and edit /home/me/myProject/UltiSnips/javascript.snippets.

In a nutshell: UltiSnipsEdit creates a snippet in the local folder, instead of in the configuration folder, if no snippet file was already present in the configuration folder. Also, the snippets in this local file are not recognized.

Tested on vim 704

answered or workaround exists medium

Most helpful comment

I am also experiencing the same. But followed the discussion in #711 & got a work around. Try adding this to your vimrc:

let g:UltiSnipsSnippetDirectories = ['~/.vim/UltiSnips', 'UltiSnips']

All 4 comments

Related to #711.

I am also experiencing the same. But followed the discussion in #711 & got a work around. Try adding this to your vimrc:

let g:UltiSnipsSnippetDirectories = ['~/.vim/UltiSnips', 'UltiSnips']

Indeed, the workaround is working all right.

Closing as dupe, consolidating this issue in #711.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

9mm picture 9mm  路  4Comments

carlitux picture carlitux  路  3Comments

Industrial picture Industrial  路  8Comments

codybuell picture codybuell  路  4Comments

kirillbobyrev picture kirillbobyrev  路  4Comments