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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -