comparison vim/vimrc @ 308:52d4d0fa195b

Vim config changes. * Disabled `interestingwords` for now because it messes up my `n` map. * Try to improve `supertab` settings. * Fix problems with `<c-[>` actually being `<Esc>` on US keyboards, wtf.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 10 Aug 2015 11:58:52 -0700
parents b09d451f3516
children 8f49f36b76ef
comparison
equal deleted inserted replaced
307:b09d451f3516 308:52d4d0fa195b
38 " Disable some plugins. 38 " Disable some plugins.
39 let g:pathogen_disabled = [] 39 let g:pathogen_disabled = []
40 call add(g:pathogen_disabled, 'vimroom') 40 call add(g:pathogen_disabled, 'vimroom')
41 call add(g:pathogen_disabled, 'minibufexpl') 41 call add(g:pathogen_disabled, 'minibufexpl')
42 call add(g:pathogen_disabled, 'ragtag') 42 call add(g:pathogen_disabled, 'ragtag')
43 call add(g:pathogen_disabled, 'interestingwords')
43 44
44 " Potentially add the local bundle directory. 45 " Potentially add the local bundle directory.
45 if isdirectory(s:vim_home.s:path_sep.'local') 46 if isdirectory(s:vim_home.s:path_sep.'local')
46 execute 'set runtimepath+='.s:vim_home.s:path_sep.'local' 47 execute 'set runtimepath+='.s:vim_home.s:path_sep.'local'
47 endif 48 endif
168 169
169 " How to show invisible characters 170 " How to show invisible characters
170 set listchars=eol:$,tab:>-,trail:-,extends:>,precedes:<,nbsp:%,conceal:. 171 set listchars=eol:$,tab:>-,trail:-,extends:>,precedes:<,nbsp:%,conceal:.
171 172
172 " Nice auto-complete menu. 173 " Nice auto-complete menu.
174 set complete=.,w,b,u,t
173 set completeopt=longest,menuone,preview 175 set completeopt=longest,menuone,preview
174 176
175 " Column indicators. 177 " Column indicators.
176 set colorcolumn=72,79 178 set colorcolumn=72,79
177 179
267 269
268 " }}} 270 " }}}
269 271
270 " Supertab {{{ 272 " Supertab {{{
271 273
272 let g:SuperTabDefaultCompletionType = "<c-n>" 274 let g:SuperTabDefaultCompletionType = "context"
273 let g:SuperTabLongestHighlight = 1 275 let g:SuperTabLongestEnhanced = 1
276 let g:SuperTabLongestHighlight = 0
274 let g:SuperTabCrMapping = 1 277 let g:SuperTabCrMapping = 1
275 278
276 " }}} 279 " }}}
277 280
278 " Lawrencium {{{ 281 " Lawrencium {{{
496 " Jump to tags by keeping things better in view. Option for jumping to a tag 499 " Jump to tags by keeping things better in view. Option for jumping to a tag
497 " in a split window where everything is folded except what you need to see. 500 " in a split window where everything is folded except what you need to see.
498 " Note that if a tag search yield multiple possible results, we will still run 501 " Note that if a tag search yield multiple possible results, we will still run
499 " some of that `zvzz` stuff, but that's OK, the main point is to not mess up 502 " some of that `zvzz` stuff, but that's OK, the main point is to not mess up
500 " the result selection window either. 503 " the result selection window either.
501 nnoremap <c-]> <c-]>zvzz 504 nnoremap <F9> :pop<cr>
502 nnoremap <c-[> :pop<cr> 505 nnoremap <F10> <c-]>zvzz
503 nnoremap <c-\> <c-w>v<c-]>zMzvzz 506 nnoremap <s-F10> <c-w>v<c-]>zMzvzz
504 nnoremap <F9> :tprevious 507 nnoremap <c-F9> :tprevious
505 nnoremap <F10> :tnext 508 nnoremap <c-F10> :tnext
506 509
507 " Keep search matches in the middle of the window. 510 " Keep search matches in the middle of the window.
508 nnoremap n nzvzz 511 nnoremap n nzvzz
509 nnoremap N Nzvzz 512 nnoremap N Nzvzz
510 513