Thursday, December 30, 2010

Line-based jumplist?

Hi,

Is there a way to return to a previous position (character) on the current line
after a jump to any other position on the *same* line? Suppose the cursor is at
some position on the line:

The quick brown fox jumps over the lazy dog
^
(cursor)

Then $ is pressed, putting the cursor at the EOL:

The quick brown fox jumps over the lazy dog
^
(cursor)

Now, how do I return, i.e. jump back, to the previous location (character 'r')
on the line?

If I had made changes at 'r' I could use 'g;' to return to it, but I'm asking
about the more general case where no changes were made at the original position.

Thank you.

--
Douglas A. Augusto

--
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: