What command can I run to remove blank lines in Vim?
Vim delete blank lines
vivim
Related Topic
- How to move to end of line in Vim
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- Indent multiple lines quickly in vi
- Vim clear last search highlighting
- Your most productive shortcut with Vim
- What’s a quick way to comment/uncomment lines in Vim
- How does the vim “write with sudo” trick work
- How to exit the Vim editor
Best Answer
:g
will execute a command on lines which match a regex. The regex is 'blank line' and the command is:d
(delete)