Wednesday, January 16, 2013

How to delete range of lines without moving cursor?

Dear Vimmers,

I was just wondering, if it is possible to delete a range of lines
without moving the cursor.

Example:
line one
line two
line three
current line

:1,2d
Deletes the first two lines and leaves the cursor on line three.

But I would like to leave it on the current position ('current line').

Kind regards!

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: