summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authordoy <doy@tozt.net>2009-01-04 18:40:39 -0500
committerdoy <doy@tozt.net>2009-01-04 18:40:39 -0500
commit7f68618228419cf5e0a21b5798fa73fad2dfe7ca (patch)
treeedffed0387c1706cb6aa984846c99c227578b684 /vimrc
parentf7f8c55d85983273c78be7efb924b11cbd1019d8 (diff)
downloadconf-7f68618228419cf5e0a21b5798fa73fad2dfe7ca.tar.gz
conf-7f68618228419cf5e0a21b5798fa73fad2dfe7ca.zip
use syntax omnicompletion if other omnicompletion doesn't exist
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 087fed3..5a97091 100644
--- a/vimrc
+++ b/vimrc
@@ -146,6 +146,13 @@ set wildmode=longest,list,full
set noincsearch
+if has("autocmd") && exists("+omnifunc")
+ autocmd FileType *
+ \ if &omnifunc == "" |
+ \ setlocal omnifunc=syntaxcomplete#Complete |
+ \ endif
+endif
+
let mapleader = ';'
" }}}
" Make vim less whiny {{{