diff --git a/vimrc b/vimrc index d50f4b0..2dc6fd2 100644 --- a/vimrc +++ b/vimrc @@ -1130,7 +1130,9 @@ set concealcursor= "----------------------------------------------------------------------------}}} " #mappings {{{ let g:mapleader = ' ' - +" search and replace {{{ +nnoremap rr :%s/\<=expand('')\>//g +"}}} " miscallaneous {{{ nnoremap 0 ^ nnoremap cs :let @/="" @@ -1148,7 +1150,7 @@ nnoremap ;j jA; " Focus on current fold, close the rest nnoremap zz zMzvzt " replace current word with last yanked/deleted text -nnoremap rr "_diwP +nnoremap rw "_diwP " replace current word with last yanked text nnoremap ry diw"0P " quick grep of visual selection