Yes... I, Matt, who recommended the tab mappings, do no advise mapping tab this way for command line because of the lack of completion.
However, you can do a <ctrl-d> for a kind of completion. --Matt On Thu, Apr 27, 2006 at 01:58:53AM -0700, Gerald Lai wrote: > On Thu, 27 Apr 2006, Robert Cussons wrote: > > >Hi All, > > > >Matt kindly suggested this mapping for the above > > > >>>inoremap <m-i> <tab> > >>>nnoremap <tab> <esc> > >>>vnoremap <tab> <esc>gV > >>>inoremap <tab> <esc>`^ > > > >but how would I add a mapping to make tab work as escape in the command > >line, also is there any loss of functionality making this mapping, I don't > >use tab in the command line, but does it do anything useful that I don't > >know about? > > Tab is used as the completion key in the command line. This is > extremely useful, IMHO. For example, (with cursor as _ underscore) typing > > :help dos-p_ > > and then hitting <Tab> will produce > > :help msdos-problems_ > > If you'd like to make <Tab> act as <Esc> in the command line, do > > :cnoremap <Tab> <Esc> > > HTH :) > -- > Gerald
