I am switching from windows to linux for my development environment,
and working on 'porting' my .vimrc file.  I have tons of Alt key
remappings, but I am having trouble getting them working in plain vim
(i.e. not gvim) from a bash shell.

For instance, the mapping

   :inoremap <a-b> foo

does not work because vim does not seem to recognize the alt key.  If
I use the 'Ctrl-V Alt-b' approach, I end up with this:

   :noremap ^[b  foo

which does work, but the :map command show that it really maps to

   <esc>b

However, this is really annoying, because when I want to escape from
insert mode, vim hesitates for a second to make sure that I really
want just '<esc>', rather than '<esc>b'.

Is there a way I can get vim to use alt key remappings, without
mapping them to the <esc> key?  If this is really an XWindows or KDE
config problem rather than a vim problem, then please point me to the
appropriate list/newsgroup/forum.

I am running Vim 6.4.7 in Fedora Core 5.  My shell is KDE Konsole, but
I see the same problem from xterm.

-- Mike

Reply via email to