:g/^$/d
:g
will execute a command on lines which match a regex. The regex is 'blank line' and the command is :d
(delete)
Read full article from vi - Vim delete blank lines - Stack Overflow
:g/^$/d
:g
will execute a command on lines which match a regex. The regex is 'blank line' and the command is :d
(delete)
Read full article from vi - Vim delete blank lines - Stack Overflow
No comments:
Post a Comment