Mercurial > dotfiles
changeset 103:a755319f124e
Added mappings for substitutions.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 07 May 2012 17:13:56 -0700 |
parents | 394846001d0f |
children | f919d3bf3744 |
files | vim/vimrc |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vim/vimrc Fri May 04 11:51:42 2012 -0700 +++ b/vim/vimrc Mon May 07 17:13:56 2012 -0700 @@ -306,15 +306,19 @@ " Simple way to close a buffer without closing the window. nnoremap <leader>bd :bprevious<cr>:bdelete #<cr> -" Toggle folds with <space> +" Toggle folds with <space>. nnoremap <space> za -" Create folds with <space> (in visual mode) +" Create folds with <space> (in visual mode). vnoremap <space> zf -" File-type switching +" File-type switching. nnoremap <leader>ftmd :set ft=markdown<cr> +" Quick search and replace. +nnoremap <leader>s :%s/\<<C-r><C-w>\>//g<left><left> +vnoremap <leader>s :s/<C-r>///g<left><left> + " }}} " Abbreviations {{{