omnicompletion backcompat for vim 6

This commit is contained in:
David Alexander Majnemer 2009-09-02 21:22:12 -05:00
parent 8bdbaecd1b
commit d0d87aa5d7

30
vimrc
View file

@ -329,18 +329,20 @@ if has('eval')
endif
" ---- OmniCpp ----
if has('autocmd')
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
if v:version >= 700
if has('autocmd')
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
endif
set completeopt=menu,menuone,longest
let OmniCpp_MayCompleteDot = 1 " autocomplete with .
let OmniCpp_MayCompleteArrow = 1 " autocomplete with ->
let OmniCpp_MayCompleteScope = 1 " autocomplete with ::
let OmniCpp_SelectFirstItem = 2 " select first item (but don't insert)
let OmniCpp_NamespaceSearch = 2 " search namespaces in this and included files
let OmniCpp_ShowPrototypeInAbbr = 1 " show function prototype (i.e. parameters) in popup window
map <C-F12> :!$HOME/bin/ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR>
" add current directory's generated tags file to available tags
set tags+=./tags
endif
set completeopt=menu,menuone,longest
let OmniCpp_MayCompleteDot = 1 " autocomplete with .
let OmniCpp_MayCompleteArrow = 1 " autocomplete with ->
let OmniCpp_MayCompleteScope = 1 " autocomplete with ::
let OmniCpp_SelectFirstItem = 2 " select first item (but don't insert)
let OmniCpp_NamespaceSearch = 2 " search namespaces in this and included files
let OmniCpp_ShowPrototypeInAbbr = 1 " show function prototype (i.e. parameters) in popup window
map <C-F12> :!$HOME/bin/ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR><CR>
" add current directory's generated tags file to available tags
set tags+=./tags