Vi – Useful Tricks #2

  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 above current.

LEAVE A COMMENT