MarcWeber / ultisnips

Official Mirror of UltiSnips trunk on LaunchPad. Send pull requests to SirVer/ultisnips!
https://launchpad.net/ultisnips
25 stars 5 forks source link

E716: Key not present in Dictionary: SnippetFilesForCurrentExpansion, [&filetype]) #20

Closed blueyed closed 11 years ago

blueyed commented 11 years ago

Just ran into this, when coming back to Vim and switching the window/buffer:

Error detected while processing function <SNR>179_OnBufferVisit:
line   12:
E716: Key not present in Dictionary: SnippetFilesForCurrentExpansion, [&filetype])
E116: Invalid arguments for function call(g:UltiSnips.SnippetFilesForCurrentExpansion, [&fi
letype])
E15: Invalid expression: call(g:UltiSnips.SnippetFilesForCurrentExpansion, [&filetype])
MarcWeber commented 11 years ago

Can you ping me on irc? Thanks.

blueyed commented 11 years ago

OnBufferVisit is from YouCompleteMe.

g:UltiSnips contains only my settings from .vimrc.

Apparently I am overwriting the initial setup in ~/.vimrc, because I have re-activated the following autocommand:

autocmd BufWritePost $MYVIMRC,~/.dotfiles/vimrc,$MYVIMRC.local nested :source $MYVIMRC

My bad.