UltiSnips/autoload
Daniel Hahler 8d77e89d65 Improve/simplify filetype handling for buffers (#745)
* 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.
2016-09-07 19:51:16 +07:00
..
neocomplete/sources Delete default setting in neocomplete/sources/ultisnips.vim 2015-04-12 19:38:33 +09:00
UltiSnips Remove autoload/UltiSnips/bootstrap.vim again 2015-08-10 22:31:22 +02:00
unite/sources syntax highlight for unite ultisnips 2015-12-21 22:06:16 +08:00
UltiSnips.vim Improve/simplify filetype handling for buffers (#745) 2016-09-07 19:51:16 +07:00