On Mi, 25 Sep 2013, Ingo Karkat wrote:
> On 25-Sep-2013 15:21 +0200, Bram Moolenaar wrote:
>
> > 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.
>
> Can't tell for sure, but I've seen jumps (and "gi") rarely used; it's
> one of the more advanced features. Why don't we include this and wait
> for complaints?! In any case, if plugins relied on this, wouldn't it
> be
> fixed (without a conditional and totally backwards-compatible!) by a simple
> :keepjumps normal! gi
>
> Any inconsistency in the usage model irks me, so I really would like to
> have the new behavior.
>
> > We could add the jump when "gi" was typed instead of coming from a
> > script or mapping, but that makes it a bit unpredictable.
>
> Please no! That would just introduce more inconsistencies!
I would even go so far and say that 'gi' is one of the more obscure
features of Vim that hardly ever someone uses. Other than that I totally
agree with Ingo,
best,
Christian
--
Schlage eine Brücke! Die am anderen Ufer warten darauf.
-- Elfriede Brandler
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.