Fast answer: do '' right after (' to go to mark, to the ' mark [where you last jumped from]).
so :1,2d<enter>'' would do it.
On Wed, Jan 16, 2013 at 11:16 AM, Asis Hallab <asis.hallab@gmail.com> wrote:
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
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:
Post a Comment