Wednesday, July 4, 2018

Re: bnext which doesn't wrap?

On 2018-07-05, Erik Christiansen wrote:
> On 04.07.18 14:47, David Woodfall wrote:
> > Is there a way of doing a :bnext or :bprev that doesn't wrap? Or
> > alternatively an option to turn off wrapping when navigating buffers?
>
> If you step through the buffers with :n instead, it won't wrap.
> However, if you fall into old habits, and slip in a :bn, that won't
> continue from the current buffer, but starts again from the first.
> The operation of the two seems independent, with separate buffer indices.

:bn traverses the buffer list while :n traverses the argument list.
Different objects, different lists.

Regards,
Gary

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

Post a Comment