diff --git a/.vimrc b/.vimrc index 3739df5..9d46ac5 100644 --- a/.vimrc +++ b/.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