add omnicompletion for C file, php, ruby ....wq
This commit is contained in:
parent
2072c01646
commit
f62c206844
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…
Reference in New Issue
Block a user