diff --git a/home/vimrc b/home/vimrc index aa229ce..f972373 100644 --- a/home/vimrc +++ b/home/vimrc @@ -117,6 +117,10 @@ endif set backspace=eol,start,indent " make backspace useful +if has('wildmenu') + set wildmenu " tab completion in command-line +endif + " easy indent/unindent nn >> nn << @@ -148,14 +152,27 @@ ino ino ino ino + +" good habits nn nn nn :m-2 nn :m+1 +ino +ino +ino :m-2 +ino :m+1 " rebind annoying things +" reflow text nn Q gq -nn K +ino Q gq +" split lines (opposite of J) +nn K ik$ +" hide search highlighting +nn :nohls +ino :nohls +" TODO: bind something to original function if v:version < 703 " even debian stable has 7.3, so... set nomodeline @@ -166,3 +183,6 @@ else set list listchars=tab:>-,trail:.,extends:>,nbsp:_ endif endif + +" TODO: check if pathogen is installed +execute pathogen#infect()