Replace word under the cursor like a pro

vinodkri
1 min readJul 30, 2019

--

One of the frequent action repeated is replacing/renaming a word. It deserved a quick and easy way of doing.

nnoremap <leader>rw :%s/<C-r><C-w>//gc<Left><Left><Left>

nnoremap <leader>r :%s///gc<Left><Left><Left><Left>

Thank you for reading! Clap if you liked this post. Have any feedback/comments? Please leave them here!

--

--