I have tried other solutions proposed of this question but still none of them worked.
Related config:
Plugin 'SirVer/ultisnips'
" Optional:
Plugin 'honza/vim-snippets'
let g:UltiSnipsSnippetDirectories = ['/home/ayush/.vim/bundle/ultisnips', '~/UltiSnips']
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
let g:UltiSnipsEditSplit="vertical"
I use vundle package manager and installed ultisnips by :PluginInstall
When creating new snips, :UltiSnipsEdit
, it opens a file at ~/UltiSnips/<language>.snippets
and i think vundle installed the package at ~/.vim/bundle/ultisnips
.
Also,
:verbose imap <tab>
shows
<Tab> * <C-R>=UltiSnips#ExpandSnippet()<CR>
Last set from ~/.vim/bundle/ultisnips/autoload/UltiSnips/map_keys.vim Press ENTER or type command to continue
and
:help UltiSnips-snippet-search-path
shows
E149: Sorry, no help for UltiSnips-snippet-search-path
If some more info is needed, please mention in comments.
g:UltiSnipsSnippetDirectories
to the ones you installed with the plugin by Honza.PluginInstall
which install in the default directory,~/.vim/bundle/<plugin>
which i have specified. Am i missing something?trigger
has been written; press Tab to expand the snippet. If it's not expanded, something is wrong in your Vim build (try to recompile a more recent version with more features), or something is wrong in your UltiSnips plugin (make sure it's correctly installed), or something in your environment intercepts Tab before Vim.