Christian Brabandt wrote:
> Hi Tim!
>
> On Mo, 23 Sep 2013, Tim Chase wrote:
>
> > Playing around with the latest VimGolf challenge[1], I was attempting
> > to use "gi" to add some text, then control+O (or backtick-backtick) to
> > jump back to where I had issued the "gi". I was somewhat surprised to
> > find that "gi" doesn't modify the jump-list, even though it can
> > generate some pretty large jumps, losing the previous location in the
> > process.
>
> Not sure, but it sounds like a good idea, to add the current position to
> the jumplist. So here is a patch, to add this function.
I hesitate to include this, because I expect some plugins to use this.
e.g. to drop out of insert mode, do some stuff (grab a word from
somewhere else in the file) and then "gi" to resume inserting. In that
case adding a jump is not what one expects.
We could add the jump when "gi" was typed instead of coming from a
script or mapping, but that makes it a bit unpredictable.
--
In war we're tough and able.
Quite indefatigable
Between our quests
We sequin vests
And impersonate Clark Gable
It's a busy life in Camelot.
I have to push the pram a lot.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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 because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Wednesday, September 25, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment