:g/^$/dBreaking this down. The "g" will execute a command on lines that match a regular expression. The regular expression matches blank lines, and the command is "d" (delete).
Subscribe to:
Post Comments (Atom)
A blog dedicated to text editing and general exploration of computing knowledge
1 comment:
I use this opposite approach so that the pattern is a bit simpler to type:
:v/./d
Post a Comment