Skip to content

Instantly share code, notes, and snippets.

@ericdorsey
Last active September 10, 2017 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericdorsey/521f6cdec295701622134d02672e85dd to your computer and use it in GitHub Desktop.
Save ericdorsey/521f6cdec295701622134d02672e85dd to your computer and use it in GitHub Desktop.

Insert a character only on non-empty lines. Below inserts a > on all non- blank lines:

%s/[^$]/> \0/

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