Browse Source

add omnicompletion for C file, php, ruby ....wq

master
Mathieu Maret 12 years ago
parent
commit
f62c206844
  1. 17
      .vimrc

17
.vimrc

@ -430,3 +430,20 @@ if has("autocmd")
endif
""""""""""""""""""""""""""""""""""""""""""""""""""
"Omni-completion par CTRL-X_CTRL-O
"""""""""""""""""""""""""""""""""""""""""""""""""""
au filetype html set omnifunc=htmlcomplete#CompleteTags
au filetype css set omnifunc=csscomplete#CompleteCSS
au filetype javascript set omnifunc=javascriptcomplete#CompleteJS
au filetype c set omnifunc=ccomplete#Complete
au filetype php set omnifunc=phpcomplete#CompletePHP
au filetype ruby set omnifunc=rubycomplete#Complete
au filetype sql set omnifunc=sqlcomplete#Complete
au filetype python set omnifunc=pythoncomplete#Complete
au filetype xml set omnifunc=xmlcomplete#CompleteTags
" Enable omnicppcompletion
set nocp
filetype plugin on
set path=.,..,/usr/local/include,/usr/include

Loading…
Cancel
Save