diff --git a/.vimrc b/.vimrc index 174e57b..2c4fd4d 100644 --- a/.vimrc +++ b/.vimrc @@ -13,7 +13,7 @@ call pathogen#infect() " yankring - maintains a list of numbered registers containing the last deletes, see :YRShow " taglist - groups and displays the functions, classes, … in a Vim window -set guifont=Inconsolata\ 12 +set guifont=Inconsolata\ 11 syntax on " syntax coloring by default @@ -55,7 +55,7 @@ set showcmd " show informations about selection while in visual mode set guioptions-=T "remove toolbar -set colorcolumn=80,120 " highligth the 80th and 120th column +set colorcolumn=72,120 " highligth the 80th and 120th column "set cursorline " highlight current line @@ -83,6 +83,9 @@ let mapleader = "," " leader key is comma " xx will delete the line without copying it into the default register nnoremap xx "_dd +" Yank the line, comment it, paste it +nnoremap yp yygccp + " When jumping to a given line, center the screen nnoremap G Gzz @@ -92,6 +95,9 @@ nnoremap v V`] " ,s will split vertically and swith over the new panel nnoremap s vl:bn +" ,S will split horizontally and swith over the new panel +nnoremap S sl:bn + " Wrap a paragraph and justify it :runtime macros/justify.vim nnoremap j gw}{V}:call Justify('tw',4) @@ -109,7 +115,7 @@ nnoremap c :%s/\/\*\_.*\*\/\n\{,1}\|^\s*\/\/.*\n\|\s*\/\/.*//:%s/^\s nnoremap h :set guifont=Inconsolata\ 4 " set a normal guifont size -nnoremap f :set guifont=Inconsolata\ 12 +nnoremap f :set guifont=Inconsolata\ 11 " set a big guifont size nnoremap ç :set guifont=Inconsolata\ 14 @@ -119,6 +125,10 @@ nnoremap ç :set guifont=Inconsolata\ 14 cnoremap %% =expand('%:h').'/' map p :CtrlP %% +" semantic selection expansion/shrink +map + (expand_region_expand) +map - (expand_region_shrink) + " use shift-space as escape "inoremap