Monday, September 27, 2010

Re: CTRL-???

On 09/27/10 18:53, meino.cramer@gmx.de wrote:
> Tim Chase<vim@tim.thechases.com> [10-09-27 21:04]:
>> On 09/27/10 13:47, meino.cramer@gmx.de wrote:
>>> Now CTRL-A end CTRL-E in input are no longer working.
>>>
>>> :<CTRL-A>
>>
>> :help c_CTRL-A
>
> I meant, that CTRL-A and CTRL-E are no longer
> working in input MODE (I didnt typed that correctly).

Ah. In insert mode, ^A appends the most recently inserted text:

:help i_CTRL-A

which can be overridden with

:inoremap <c-a> <c-o>I
or
:inoremap <c-a> <home>
or
:inoremap <c-a> <c-o>gI

The first one goes to the first non-whitespace (the same as "^"
does) while the second one starts inserting before the first
character, even if it's whitespace.

In Insert mode, ^E and ^Y insert the character from the line
below/above respectively, and can be remapped with

:inoremap <c-e> <end>

Things might function a little oddly in REPLACE mode instead of
INSERT mode if you use one of the <c-o> mappings instead of the
<home>/<end> versions.

> What happens to CTRL-A and CTRL-E at input mode ?

I suspect you had some mapping(s) defined before your upgrade,
and in the upgrade they got lost. There are several ways it
could have happened: you might have edited the distribution
files (not suggested for exactly this reason, and I've learned
this hard-way too), you might have had some system-wide
/etc/vimrc that got changed, or there might have been some
reference to a file where they were previously mapped and that
imported file became no longer available. If the mappings are in
your ~/.vimrc they should carry over if your home directory is
preserved on reinstalls.

:help i_CTRL-A
:help i_CTRL-E

-tim

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment