Remove Blank Lines in VI/VIM


/ Published in: Regular Expression
Save to your folder(s)

Here is a common Regex I use to remove all blank lines in a file using VIM


Copy this code and paste it in your HTML
  1. :%s/^[\ \t]*\n//g

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.