summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-03-26 17:14:02 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-03-26 17:14:02 +0200
commit77942d2c2258f580a0e49ffce863ca55f433a017 (patch)
tree8ddf09448bef69b12d86e799969475e92455e3a1
parent4ab26b5913de8e313bcede8819b65e17891f6417 (diff)
downloadvim-77942d2c2258f580a0e49ffce863ca55f433a017.zip
vim-77942d2c2258f580a0e49ffce863ca55f433a017.tar.gz
add omnifunc basic setup
-rw-r--r--vimrc11
1 files changed, 11 insertions, 0 deletions
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")