On Tue, Sep 26, 2006 at 05:27:53PM +0200, Horvath Adam wrote:
> Hi,
>
> I try to remap the escape button to alt+space combination to come back
> from insert mode to command mode.
>
> :map <M-Space> <Esc>
>
> It works, but:
>
> after hitting alt+space the cursor jump to the beginning of the next line.
> Why?
> It's really disturbing.
>
> How can I correct?
>
> Thanks,
> Adam
I cannot test this because my windowing system grabs <S-Space>
instead of letting vim (or gvim) handle it. Perhaps you have
:map <M-Space> <Esc>
instead of
:map <M-Space> <Esc>
(Note the trailing space!) That would explain it.
HTH --Benji Fisher