From 6f8f107e9e743db65259505d3ee519f2588d1acb Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Tue, 14 May 2013 08:49:47 +0200 Subject: [PATCH] ,t to enable tab indent, ,w for text width, ,r for rainbow --- .vimrc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index daacbad..c6df9be 100644 --- a/.vimrc +++ b/.vimrc @@ -75,6 +75,8 @@ let mapleader = "," " leader key is comma " xx will delete the line without copying it into the default register nnoremap xx "_dd +nnoremap t :set noexpandtab + " Yank the line, comment it, paste it nnoremap g yygccp @@ -85,9 +87,9 @@ nnoremap G Gzz nnoremap v V`] " ,w will disable autowrap line break -nnoremap w :set tw=0 -nnoremap W :set tw=80 -nnoremap x :set tw=120 +nnoremap w :set tw=0 +nnoremap W :set tw=80 +nnoremap x :set tw=120 " ,s will split vertically and swith over the new panel nnoremap s vl:bn @@ -100,7 +102,8 @@ nnoremap S sl:bn nnoremap j gw}{V}:call Justify('tw',4) " activate rainbow parenthesis -nnoremap R :RainbowParenthesesToggle +" nnoremap R :RainbowParenthesesToggle +nnoremap r :RainbowToggle " activate gundo nnoremap u :GundoToggle @@ -228,7 +231,7 @@ nnoremap b :TagbarToggle " side pane of files map :NERDTreeToggle -nnoremap t :NERDTreeToggle +" nnoremap t :NERDTreeToggle " configure tags - add additional tags here or comment out not-used ones set tags+=~/.vim/tags/cpp