Permalink
Browse files

Pre-bind <leader>r in vim

  • Loading branch information...
1 parent d41c13a commit 04d6d8a57d48abe42ac0ddd802a66c2e6b9198de @timuruski committed Jul 9, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 vimrc
View
5 vimrc
@@ -101,6 +101,8 @@ vnoremap <tab> %
nnoremap ; :
" re-hardwrap paragraphs of text, like TextMate Ctrl + q
nnoremap <leader>q gqip
+" shortcut to map ,r to whatever
+nnoremap <leader>r :nnoremap <leader>r :w \\|
" Help is already easy to get via :h
inoremap <F1> <ESC>
@@ -118,9 +120,6 @@ map Q gq
" Seriously, guys. It's not like :W is bound to anything anyway.
command! W :w
-" Make <leader>' switch between ' and "
-nnoremap <leader>' ""yls<c-r>={'"': "'", "'": '"'}[@"]<cr><esc>
-
" Open files in directory of the current file
map <leader>e :edit %%
map <leader>v :view %%

0 comments on commit 04d6d8a

Please sign in to comment.