From 7550ab9420526bc382845b14af7eb1534b768ab1 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 10 Jun 2009 11:11:34 +0100 Subject: [PATCH 1/1] 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. --- .vim/colors/iain.vim | 2 ++ .vimrc | 8 ++++++++ 2 files changed, 10 insertions(+) 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 -- 2.7.4