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