Monday, June 20, 2011

Vim delete from curser to line number

The command in Vim to delete from the current position of the curser to a greater line number, 57 for example, is

:,57d

This is derived from deleting lines in a range, lines 22 to 57 for example:
:22,57d

No comments:

Post a Comment