Posts

Showing posts from October, 2020

Delete every other line in VIM File

How to delete every other line in a vim file?  :g/^/+d This will essentially delete all even numbered lines. If you’d like to delete all odd numbered lines, delete the first line in the file (ggdd) and then run the same command as above.