How to remove blank lines using vi editor command Posted on 09-Jul-2009 By Admin No Comments on How to remove blank lines using vi editor command use the following: :g/^$/d Linux/Unix, shell