Vi – Useful Tricks #2 April 4, 2014 Centos, FreeBSD, Linux, Unix, vi Vi delete from line1 to current :1,.d This deletes lines 1 to current. :1,.-1d This deletes lines 1 to abov.. Read more