.vimrc

changeset 630
e5aec7abb8b5
parent 627
9edd7ddfe374
child 631
8e07c29f2672
equal deleted inserted replaced
629:c11c253374ac 630:e5aec7abb8b5
29 29
30 Plugin 'godlygeek/tabular' 30 Plugin 'godlygeek/tabular'
31 Plugin 'tomtom/tcomment_vim' 31 Plugin 'tomtom/tcomment_vim'
32 Plugin 'tpope/vim-unimpaired' 32 Plugin 'tpope/vim-unimpaired'
33 Plugin 'tpope/vim-endwise' 33 Plugin 'tpope/vim-endwise'
34 Plugin 'lifepillar/vim-mucomplete'
34 35
35 Plugin 'vimwiki/vimwiki' 36 Plugin 'vimwiki/vimwiki'
36 37
37 Plugin 'tpope/vim-fugitive' 38 Plugin 'tpope/vim-fugitive'
38 Plugin 'ludovicchabant/vim-lawrencium' 39 Plugin 'ludovicchabant/vim-lawrencium'
116 map <leader>te :Tabularize first_eq<CR> 117 map <leader>te :Tabularize first_eq<CR>
117 map <leader>tc :Tabularize first_colon<CR> 118 map <leader>tc :Tabularize first_colon<CR>
118 map <leader>tm :Tabularize methods<CR> 119 map <leader>tm :Tabularize methods<CR>
119 120
120 map <silent> <leader>a :call vimrc#AutoFmtToggle()<CR> 121 map <silent> <leader>a :call vimrc#AutoFmtToggle()<CR>
122
123 if exists("g:loaded_mucomplete")
124 inoremap <expr> <c-e> mucomplete#popup_exit("\<c-e>")
125 inoremap <expr> <c-y> mucomplete#popup_exit("\<c-y>")
126 inoremap <expr> <cr> mucomplete#popup_exit("\<cr>")
127 set shortmess+=c
128 endif
121 129
122 cabbr Q q 130 cabbr Q q
123 cabbr W w 131 cabbr W w
124 "}}} 132 "}}}
125 133
184 else 192 else
185 set wildignore+=.git\*,.hg\*,.svn\* 193 set wildignore+=.git\*,.hg\*,.svn\*
186 endif 194 endif
187 195
188 " Don't assume to scan includes when autocompleting 196 " Don't assume to scan includes when autocompleting
189 set complete-=i 197 set complete-=i complete-=t
198
199 set completeopt+=menuone,noinsert
190 200
191 " Never open with folds collapsed 201 " Never open with folds collapsed
192 set nofoldenable 202 set nofoldenable
193 203
194 " keep the junk out (imo) 204 " keep the junk out (imo)
219 set guifont=DejaVu\ Sans\ Mono:h11 229 set guifont=DejaVu\ Sans\ Mono:h11
220 else 230 else
221 set guifont=DejaVu\ Sans\ Mono\ 10 231 set guifont=DejaVu\ Sans\ Mono\ 10
222 endif 232 endif
223 233
224 set guioptions-=T "no toolbar, menu, tearoffs 234 set go-=T go-=m go-=t "no toolbar, menu, tearoffs
225 set guioptions-=m
226 set guioptions-=t
227 " }}} 235 " }}}
228 236
229 " Autocmds {{{ 237 " Autocmds {{{
230 augroup vimrc 238 augroup vimrc
231 autocmd! 239 autocmd!
277 let perl_sub_signatures = 1 285 let perl_sub_signatures = 1
278 let perl_sync_dist = 200 286 let perl_sync_dist = 200
279 " }}} 287 " }}}
280 288
281 " Plugin settings {{{ 289 " Plugin settings {{{
290 ">> mucomplete
291 " enable and prefer local buffer before tags
292 let g:mucomplete#enable_auto_at_startup = 1
293 let g:mucomplete#chains = {'default': ['path', 'omni', 'c-n', 'tags', 'dict', 'uspl']}
294
282 ">> Vimwiki 295 ">> Vimwiki
283 let g:vimwiki_list = [ 296 let g:vimwiki_list = [
284 \ { 297 \ {
285 \ 'path': '~/vimwiki/', 298 \ 'path': '~/vimwiki/',
286 \ 'auto_tags': 1, 'auto_toc': 1, 'automatic_nested_syntaxes': 1 299 \ 'auto_tags': 1, 'auto_toc': 1, 'automatic_nested_syntaxes': 1

mercurial