Remove empty lines in VIM editor

VIM is a powerful editor and used by many geeks across the world. Often, you many want to remove blank lines from your code.

Following is the way to do it:

a. Open vim.
b. Click on 'Escape'
b. Type in the following code:

:%s/^[\ \t]*\n//g 

Done. All your empty or blank lines should be gone now.