vim – How to delete a large block of text without counting the lines?

Go to the starting line and type ma (mark “a”). Then go to the last line and enter d'a (delete to mark “a”).

That will delete all lines from the current to the marked one (inclusive). It’s also compatible with vi as well as vim, on the off chance that your environment is not blessed with the latter.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)