# HG changeset patch # User Ludovic Chabant # Date 1439233132 25200 # Node ID 52d4d0fa195b3461d5edce8b8ef0d18eb62e7810 # Parent b09d451f351604a25598bf05e85ff456f905d2d8 Vim config changes. * Disabled `interestingwords` for now because it messes up my `n` map. * Try to improve `supertab` settings. * Fix problems with `` actually being `` on US keyboards, wtf. diff -r b09d451f3516 -r 52d4d0fa195b vim/vimrc --- a/vim/vimrc Wed Jul 29 01:18:09 2015 -0700 +++ b/vim/vimrc Mon Aug 10 11:58:52 2015 -0700 @@ -40,6 +40,7 @@ call add(g:pathogen_disabled, 'vimroom') call add(g:pathogen_disabled, 'minibufexpl') call add(g:pathogen_disabled, 'ragtag') +call add(g:pathogen_disabled, 'interestingwords') " Potentially add the local bundle directory. if isdirectory(s:vim_home.s:path_sep.'local') @@ -170,6 +171,7 @@ set listchars=eol:$,tab:>-,trail:-,extends:>,precedes:<,nbsp:%,conceal:. " Nice auto-complete menu. +set complete=.,w,b,u,t set completeopt=longest,menuone,preview " Column indicators. @@ -269,8 +271,9 @@ " Supertab {{{ -let g:SuperTabDefaultCompletionType = "" -let g:SuperTabLongestHighlight = 1 +let g:SuperTabDefaultCompletionType = "context" +let g:SuperTabLongestEnhanced = 1 +let g:SuperTabLongestHighlight = 0 let g:SuperTabCrMapping = 1 " }}} @@ -498,11 +501,11 @@ " Note that if a tag search yield multiple possible results, we will still run " some of that `zvzz` stuff, but that's OK, the main point is to not mess up " the result selection window either. -nnoremap zvzz -nnoremap :pop -nnoremap vzMzvzz -nnoremap :tprevious -nnoremap :tnext +nnoremap :pop +nnoremap zvzz +nnoremap vzMzvzz +nnoremap :tprevious +nnoremap :tnext " Keep search matches in the middle of the window. nnoremap n nzvzz