Saturday, November 19, 2011

:b like behavior for :tabn

Is there a way to have :tabn use partial file completion the way :b
does? That is, I'd like to be able to type :tabn foo and have vim go
to the tab that has a foo.py file opened (super awesome if it also
activated the window within that tab that displays the file).

If not, is there a way to achieve this with a vim script? (I was
unable to find one on vim.org)

If nobody has such a script handy, could you give me some pointers on
how I can do it myself?
It seems that parsing the output of the :tabs command would be a start
- how does one capture that in a variable then iterate over the lines?

Thank you!

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

No comments: