:buffer tab completion

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

:buffer tab completion

Paul-4
"vim foobar barfoo"
":b oo<tab>" - completes for both buffers
":b ba<tab>" - completes for one buffer

It looks like it looks for buffers that begin with the string first. If there are any, it shows only them. If not, it shows all buffers that contain it. Intentional?

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: :buffer tab completion

Bram Moolenaar

Paul wrote:

> "vim foobar barfoo"
> ":b oo<tab>" - completes for both buffers
> ":b ba<tab>" - completes for one buffer
>
> It looks like it looks for buffers that begin with the string first.
> If there are any, it shows only them. If not, it shows all buffers
> that contain it. Intentional?

Yes.  Buffer matching is scored, and completion shows all buffers with
the highest score.

--
hundred-and-one symptoms of being an internet addict:
108. While reading a magazine, you look for the Zoom icon for a better
     look at a photograph.

 /// Bram Moolenaar -- [hidden email] -- 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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...