mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
omnicompletion backcompat for vim 6
This commit is contained in:
parent
8bdbaecd1b
commit
d0d87aa5d7
1 changed files with 16 additions and 14 deletions
30
vimrc
30
vimrc
|
@ -329,18 +329,20 @@ if has('eval')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ---- OmniCpp ----
|
" ---- OmniCpp ----
|
||||||
if has('autocmd')
|
if v:version >= 700
|
||||||
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
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
|
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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue