vim - Count() function in vimscript -
i reading .vimrc spf13-vim on github, , there didn't understand:
" snippets & autocomplete if count(g:spf13_bundle_groups, 'snipmate') bundle 'garbas/vim-snipmate' bundle 'honza/vim-snippets' " source support_function.vim support vim-snippets. if filereadable(expand("~/.vim/bundle/vim-snippets/snippets/support_functions.vim")) source ~/.vim/bundle/vim-snippets/snippets/support_functions.vim endif elseif count(g:spf13_bundle_groups, 'neocomplcache') bundle 'shougo/neocomplcache' bundle 'shougo/neosnippet' bundle 'honza/vim-snippets' elseif count(g:spf13_bundle_groups, 'neocomplete') bundle 'shougo/neocomplete.vim.git' bundle 'shougo/neosnippet' bundle 'honza/vim-snippets' endif
what count()
function here?
check if item (snipmate or neocomplcache...) exists in g:spf13_bundle_groups
.
Comments
Post a Comment