From 7be98763e3b8d44cf45e68cf6ba20784765584a8 Mon Sep 17 00:00:00 2001 From: nojhan Date: Mon, 2 Apr 2012 09:55:56 +0200 Subject: [PATCH] =?UTF-8?q?added=20leader=20font=20size=20switches=C2=A0;?= =?UTF-8?q?=20change=20remaps=20that=20are=20on=20the=20way?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vimrc | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 06ba4d9..c6aa71b 100644 --- a/.vimrc +++ b/.vimrc @@ -60,7 +60,24 @@ nnoremap r :RainbowParenthesesToggle nnoremap u :GundoToggle " remove all C/C++ comments and blank lines -nnoremap h :%s/\/\*\_.*\*\/\n\{,1}\|^\s*\/\/.*\n\|\s*\/\/.*//:%s/^\s*\n// +nnoremap c :%s/\/\*\_.*\*\/\n\{,1}\|^\s*\/\/.*\n\|\s*\/\/.*//:%s/^\s*\n// + +" set a tiny guifont size +nnoremap h :set guifont=Inconsolata\ 4 + +" set a normal guifont size +nnoremap f :set guifont=Inconsolata\ 12 + +" set a big guifont size +nnoremap ç :set guifont=Inconsolata\ 16 + + + +" double percentage sign in command mode is expanded +" to directory of current file - http://vimcasts.org/e/14 +cnoremap %% =expand('%:h').'/' +map p :CtrlP %% + set list set listchars=tab:▸\ " print tabs with a special character (add ",eol:·" for end of lines) @@ -169,3 +186,5 @@ set completeopt=menuone,menu,longest,preview :runtime plugins/bclose.vim nmap :bc Kwbd + +