Shougo/neocomplcache — Issue #112: cannot expand some snippets with multiple filetype.
Author: Phize
Created: 2011-10-14 05:09:06+00:00
State: open

https://github.com/Shougo/neocomplcache/commit/dee759293b6ae553f7f5a324d9801307fb097485
neocomplcache cannot expand some snippets with multiple filetype.

$HOME/.vim/filetype.vim
--
augroup filetypedetect
autocmd BufNewFile,BufRead *.scss set filetype=scss.css
augroup END

$HOME/.vim/css.snip
--
snippet snip1
css.snip
snippet snip2 multi
css.snip (multi snippet)

The snippet 'snip1' **can** be expanded with *.css
The snippet 'snip2_multi' **can** be expanded with *.css

$HOME/.vim/scss.snip
--
snippet snip3
scss.snip
snippet snip4 multi
scss.snip (multi snippet)

The snippet 'snip3' **can** be expanded with *.scss
The snippet 'snip4_multi' **can** be expanded with *.scss

$HOME/.vim/scss.css.snip
--
(**NeoComplCacheEditSnippets creates this file** with above-mentioned filetype.vim)

snippet snip5
scss.css.snip
snippet snip6 multi
scss.css.snip (multi snippet)

The snippet 'snip5' **cannot** be expanded with *.scss
The snippet 'snip6_multi' **cannot** be expanded with *.scss
(Although snippet's names are shown, they cannot be expanded.)