What is the correct way to change where UltiSnips searches for snippets. I tried the below with no success:
let g:UltiSnipsSnippetsDir = "/newfolder/snippets/"
let g:UltiSnipsSnippetDirectories=["UltiSnipsNewDir"]
What is the correct way to change where UltiSnips searches for snippets. I tried the below with no success:
let g:UltiSnipsSnippetsDir = "/newfolder/snippets/"
let g:UltiSnipsSnippetDirectories=["UltiSnipsNewDir"]
これは私のために働く:
.vimrc
まず、次の行をファイルに追加します。
leg g:UltiSnipsSnippetDirectories=["FolderA","FolderB"]
次に、スニップをフォルダーの下に置きます。
~/vim/bundle/vim-snippets/FolderA
注意:スニペットはエンジンから分離されているため、相対パスを使用する場合、中央のパスは「 ultisnips 」ではなく「vim-snippets 」にする必要があります。これは別のプラグイン'honza/vim-snippets'です。
ところで、UltiSnipsSnippetDirectories
ultisnips がスニップを検索する場所は、スニップを作成するためにUltiSnipsSnippetsDir
入力したときにスニップを保存する場所です。:UltiSnipsEdit