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