Skip to content

Instantly share code, notes, and snippets.

@vijaydev vijaydev/Vim Tricks
Created Apr 27, 2011

What would you like to do?
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
You can’t perform that action at this time.