Tuesday, September 8, 2020

Re: :buffers -- I'm probably doing something wrong ;)

On Mon, May 04, 2020 at 07:51:46PM +0000, Kennedy, Marcus A. wrote:
> I then cycle through my various buffers with :buf <somefile>. Today,
> something is wrong. I've got a file bc.h. So, I do
>
> :buf bc.h
>
> and I get back "E93: More than one match for bc.h".
[...]
> What is the correct way to scroll the buffers list?

Sorry for the late response, but while you did get answers about
scrolling and filtering the buffer list, I thought I'd mention one more
option.

If you enter ":buf bc.h" and then press <Tab>, Vim will tab complete to
the full path of the first buffer matching that substring, if any. The
substring does *not* appear to be treated as a regex.

If there is more than one match, pressing <Tab> will cycle through them
in buffer order, cycling back to what you typed (to let you easily
change it?), and then back through the matches in order.

--
Ed Blackman

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1599575199.255c36%40strabo.garrett.

No comments:

Post a Comment