Skip to content

DevOps NY

Figuring things out, to get it done!

Tag: vi

Posted on April 3, 2013

Useful vi commands

Here are two useful vi commands:

globally find and replace ^M characters with nothing

:s/^V^M/g

globally delete blank lines

:g/^$/d

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Tweet
  • Click to share on Reddit (Opens in new window) Reddit
  • More

Like this:

Like Loading...
Proudly powered by WordPress
%d