From 77942d2c2258f580a0e49ffce863ca55f433a017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 26 Mar 2012 17:14:02 +0200 Subject: add omnifunc basic setup --- vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vimrc b/vimrc index 4fba152..5e021ac 100644 --- a/vimrc +++ b/vimrc @@ -77,5 +77,16 @@ if has("autocmd") \ exe "normal g`\"" | \ endif + autocmd FileType python set omnifunc=pythoncomplete#Complete + autocmd FileType ruby set omnifunc=rubycomplete#Complete + autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS + autocmd FileType html set omnifunc=htmlcomplete#CompleteTags + autocmd FileType css set omnifunc=csscomplete#CompleteCSS + autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags + autocmd FileType php set omnifunc=phpcomplete#CompletePHP + autocmd FileType c set omnifunc=ccomplete#Completeset + + "set tags+=~/share/ctags/efl.tags + endif " has("autocmd") -- cgit v1.1-2-g2b99