Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vijaydev
Created April 27, 2011 12:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijaydev/944195 to your computer and use it in GitHub Desktop.
Save vijaydev/944195 to your computer and use it in GitHub Desktop.
Vim Tricks
.s@\(\d\+\)@\=(submatch(1) + 17)@
Search for numbers and replace them with results of expressions involving them. submatch(1) is \1 (groups in regexes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment