From 2394b1963dd7a57d2589e8e11d0573369ea3a6a7 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Fri, 22 Feb 2019 22:07:25 +0000 Subject: [PATCH] search/replace mapping --- vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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