Created
April 27, 2011 12:51
-
-
Save vijaydev/944195 to your computer and use it in GitHub Desktop.
Vim Tricks
This file contains 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
.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