Skip to content

Instantly share code, notes, and snippets.

@jbodah
Created October 23, 2014 19:53
Show Gist options
  • Save jbodah/c286e1e992596616b8b3 to your computer and use it in GitHub Desktop.
Save jbodah/c286e1e992596616b8b3 to your computer and use it in GitHub Desktop.
vim substitute current word
" 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