added leader font size switches ; change remaps that are on the way

This commit is contained in:
nojhan 2012-04-02 09:55:56 +02:00
commit 7be98763e3

21
.vimrc
View file

@ -60,7 +60,24 @@ nnoremap <leader>r :RainbowParenthesesToggle<CR>
nnoremap <leader>u :GundoToggle<CR>
" remove all C/C++ comments and blank lines
nnoremap <leader>h :%s/\/\*\_.*\*\/\n\{,1}\|^\s*\/\/.*\n\|\s*\/\/.*//<CR>:%s/^\s*\n//<CR>
nnoremap <leader>c :%s/\/\*\_.*\*\/\n\{,1}\|^\s*\/\/.*\n\|\s*\/\/.*//<CR>:%s/^\s*\n//<CR>
" set a tiny guifont size
nnoremap <leader>h :set guifont=Inconsolata\ 4<CR>
" set a normal guifont size
nnoremap <leader>f :set guifont=Inconsolata\ 12<CR>
" set a big guifont size
nnoremap <leader>ç :set guifont=Inconsolata\ 16<CR>
" double percentage sign in command mode is expanded
" to directory of current file - http://vimcasts.org/e/14
cnoremap %% <C-R>=expand('%:h').'/'<cr>
map <leader>p :CtrlP %%<cr>
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 <Plug>Kwbd