8d77e89d65
* Improve/simplify filetype handling for buffers There is no need to have a FileType autocmd anymore, which for some odd reason even had to be in "ftdetect"?! Now it will just use the `&filetype` property from buffers, instead of updating it on FileType events. This allows for easier lazy-loading of UltiSnips; without this patch it would not have updated the list of filetypes for the buffer after just being triggered (e.g. through NeoBundle's lazy-loading). I am using the following currently: NeoBundleLazy 'SirVer/ultisnips', { \ 'on_funcs': ['UltiSnips#ExpandSnippetOrJump']} inoremap <silent> <c-j> <C-R>=UltiSnips#ExpandSnippetOrJump()<cr> By manually defining the mapping for the trigger, I can invoke it and NeoBundle will trigger the loading of the plugin. |
||
---|---|---|
.. | ||
snippets.vim |