map <leader>b :b <Tab>
But this just shows the Ctrl-I equivalent of Tab on the command line:
:b ^I
Is there a way to create a mapping that will emulate the physical
pressing of the Tab key in this case?
Thanks,
John
--
John Magolske
http://B79.net/contact
That tab is your 'wildchar', it is not recognized in a mapping. See
":help 'wildcharm'" for its mappable counterpart.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
125. You begin to wonder how often it REALLY is necessary to get up
and shower or bathe.
I put this in the vimrc:
set wildmenu
set wildmode=list:longest,full
set wcm=<C-Z>
map <leader>a :b <C-Z>
Now, with two keystrokes, all buffers present themselves.
With 'wildmenu' settings similar to yours, I have a mapping to get a
menu even in Console Vim. This needs
if has('menu')
if !has('gui_running')
runtime! menu.vim
endif
map <F2> :emenu <C-Z>
endif
in addition to what you already got. The menu appears on your bottom
status line, Left/Right to select, Down to descend into a submenu, etc.
(It works also in the GUI but it's less necessary.) Note that the
Buffers menu include "groups of buffers" by first letter: currently I
have "others", "abcd", "efgh", "ijkl", "mnop", "qrst" and "u-z". Seeing
how they have quite different numbers of buffers, I believe these groups
might be permanent.
Best regards,
Tony.
--
In Pocataligo, Georgia, it is a violation for a woman over 200 pounds
and attired in shorts to pilot or ride in an airplane.