Wednesday, October 7, 2015

Re: How can I take control over jumps `Ctrl-O` and `Ctrl-I` in Vimscript?

Hi Annis!

On Di, 06 Okt 2015, Annis Monadjem wrote:

> On Wednesday, October 7, 2015 at 12:39:30 AM UTC+2, Annis Monadjem
> wrote:
> > Is there any way I could use Vimscript to go through the list of
> > jumps `Ctrl-O`, `Ctrl-I` and to pick the previous jump
> > buffers/positions?
> >
> > Any suggestion is greatly appreciated.
>
> Hi Tony, Thanks for your comments. I'm not there still. I'm trying to
> write a Vimscript and I just need a hint on how to approach the
> problem.
>
> I'm keeping all my Vim-Help-jump-buffers 'nobuflisted', except for the
> very last Vim-Help-buffer which is 'buflisted'. I am doing this
> purposely to keep my listing ':ls' concise and short. Most other
> non-Help-buffers and their jumps would be 'buflisted', except for
> deleted ones.
>
> When pressing 'Ctrl-O' I'd like to jump to earlier history of
> positions/buffers of both Vim-Help-jump-buffers as well as
> non-Help-buffers. In particular I would like to jump to
> Vim-Help-jump-buffers even if these are 'nobuflisted'. While jumping
> back to each earlier buffer I would like to make the new `Ctrl-O`
> target buffer only 'buflisted' while the previous buffer
> 'nobuflisted'. Problem is that `Ctrl-O` does not point nor open a
> 'nobuflisted' buffer (at least I don't know) and I'd don't want to
> 'buflisted' all Vim-Help-jump-buffers except the loaded/visible one.
>
> Please, share with me what would be my best approach to vimscript this
> problem.

I don't follow. Are you saying, that C-O/C-I does not jump if that
particular buffer has been set to nobuflisted? That doesn't not sound
right, but a quick test does not show this behaviour.

So please provide exact steps that do this and show exactly what you
expect and what happens.

Best,
Christian
--
Ein Blitzableiter auf einem Kirchturm ist das denkbar stärkste
Mißtrauensvotum gegen den lieben Gott.
-- Karl Kraus

--
--
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/d/optout.

No comments: