# HG changeset patch # User Meredith Howard # Date 1503459064 14400 # Node ID e5aec7abb8b59e56bd3536bf2dd6e4c965e5cdce # Parent c11c253374ac5c0119b0bcd3507e785f5cab3f28 add and configure mucomplete diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -31,6 +31,7 @@ let s:filename = expand('') Plugin 'tomtom/tcomment_vim' Plugin 'tpope/vim-unimpaired' Plugin 'tpope/vim-endwise' + Plugin 'lifepillar/vim-mucomplete' Plugin 'vimwiki/vimwiki' @@ -119,6 +120,13 @@ map tm :Tabularize methods map a :call vimrc#AutoFmtToggle() +if exists("g:loaded_mucomplete") + inoremap mucomplete#popup_exit("\") + inoremap mucomplete#popup_exit("\") + inoremap mucomplete#popup_exit("\") + set shortmess+=c +endif + cabbr Q q cabbr W w "}}} @@ -186,7 +194,9 @@ else endif " Don't assume to scan includes when autocompleting -set complete-=i +set complete-=i complete-=t + +set completeopt+=menuone,noinsert " Never open with folds collapsed set nofoldenable @@ -221,9 +231,7 @@ else set guifont=DejaVu\ Sans\ Mono\ 10 endif -set guioptions-=T "no toolbar, menu, tearoffs -set guioptions-=m -set guioptions-=t +set go-=T go-=m go-=t "no toolbar, menu, tearoffs " }}} " Autocmds {{{ @@ -279,6 +287,11 @@ let perl_sync_dist = 200 " }}} " Plugin settings {{{ +">> mucomplete +" enable and prefer local buffer before tags +let g:mucomplete#enable_auto_at_startup = 1 +let g:mucomplete#chains = {'default': ['path', 'omni', 'c-n', 'tags', 'dict', 'uspl']} + ">> Vimwiki let g:vimwiki_list = [ \ {