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


You need to login to view comments.