Vim completion stuff.
[profile.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index f885cbc..dd14293 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -59,6 +59,11 @@ se tags=~/.tags,./tags,tags
 " Don't timeout waiting to interpet, eg, <ESC>OA as an escape code.
 se ttimeoutlen=100
 
+" Use ^B to search backward when completing.
+inoremap <C-b> <C-p>
+" Use ^L to show matching completions but don't select one.
+inoremap <C-l> <C-n><C-p>
+
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " 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