Skip to content

Instantly share code, notes, and snippets.

@gastonambrogi
Created September 26, 2019 16:07
Show Gist options
  • Save gastonambrogi/33e1cf3ac01eddb331735aaada14d568 to your computer and use it in GitHub Desktop.
Save gastonambrogi/33e1cf3ac01eddb331735aaada14d568 to your computer and use it in GitHub Desktop.
[VIM] Replace all ocurrences in lines that starts with 'pick' from the line 2 to the end of the file with 'squash' (ideal for git rebasing)
:2,$s/^pick/squash/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment