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

This commit is contained in:
Mathieu Maret 2009-11-20 13:49:07 +01:00
parent 2072c01646
commit f62c206844

17
.vimrc
View File

@ -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