From: Iain Patterson Date: Wed, 10 Jun 2009 10:11:34 +0000 (+0100) Subject: Vim completion stuff. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=7550ab9420526bc382845b14af7eb1534b768ab1;p=profile.git Vim completion stuff. Use ^B to search backward when completing. ^P conflicts with screen. Use ^L to show matching completions but don't select one. Limit the size of the popup menu. Set popup menu colour. --- diff --git a/.vim/colors/iain.vim b/.vim/colors/iain.vim index bb2d3f0..28ad935 100644 --- a/.vim/colors/iain.vim +++ b/.vim/colors/iain.vim @@ -275,6 +275,8 @@ if has("gui_running") || &t_Co == 88 || &t_Co == 256 call X("Operator", "#e0e000", "", "none") call X("Statement", "#ffff00", "", "none") + call X("Pmenu", "#ffffff", "#287eff", "") + hi Comment ctermfg=lightblue cterm=none guifg=#80a0ff gui=none call X("Function", "darkgreen", "", "none") diff --git a/.vimrc b/.vimrc index f885cbc..dd14293 100644 --- a/.vimrc +++ b/.vimrc @@ -59,6 +59,11 @@ se tags=~/.tags,./tags,tags " Don't timeout waiting to interpet, eg, OA as an escape code. se ttimeoutlen=100 +" Use ^B to search backward when completing. +inoremap +" Use ^L to show matching completions but don't select one. +inoremap + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Handle options only available in Vim 5 and above. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -351,6 +356,9 @@ endif hi! link TabLineSel StatusLine hi! link TabLine StatusLineNC +" Limit the size of the popup menu when completing. +se pumheight=20 + " Ignore whitespace when diffing. se diffopt=filler,iwhite