From 650a43f71d00acb8ee74fa42beef6d710631b183 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 5 Mar 2015 10:10:22 -0800 Subject: [PATCH] vim --- home/vimrc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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()