Skip to content

Instantly share code, notes, and snippets.

@roundand
Last active July 27, 2017 19:29
Show Gist options
  • Save roundand/55da44ab6eaede35742d70199dcd21f3 to your computer and use it in GitHub Desktop.
Save roundand/55da44ab6eaede35742d70199dcd21f3 to your computer and use it in GitHub Desktop.
Vim cheatsheet

Search and Replace

:s/pattern/string/ Replace pattern with string on line

:%s/pattern/string/ Replace pattern with string throughout document

Flags

g Global. Replace all c Confirm i case-insensitive

Copy and Paste

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment