Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Increase digit by 1 in vim match
%s/\d\+/\=(submatch(0)+1)/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment