: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).
Thursday, December 19, 2013
Removing Blank Lines
Here's a handy one-liner to remove blank lines from a file.
Friday, December 13, 2013
Vim.js
I'm not sure what utility this provides, but it's a pretty darn cool hack. Kudos to Lu Wang for this Javascript port of Vim.
http://coolwanglu.github.io/vim.js/web/vim.html
Subscribe to:
Posts (Atom)