Skip to content

DevOps NY

Figuring things out, to get it done!

Posted on April 3, 2013 by Daniel Cassiero

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...
Categoriesvi Tagsvi

Post navigation

Previous PostPrevious A small Magento maintenance script.
Next PostNext Rsync Between Servers Automatically
Proudly powered by WordPress
%d