Created
October 23, 2014 19:53
-
-
Save jbodah/c286e1e992596616b8b3 to your computer and use it in GitHub Desktop.
vim substitute current word
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" maps substitute command to sub out the current word for quick refactorings | |
nmap <leader>re :%s/<c-r>=expand("<cword>")<cr>/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment