Hi Eric,
On 2/10/07, Eric Leenman <[EMAIL PROTECTED]> wrote:
Hi,
Is it possible to remap the up and down key to behave a bit different.
For example I have text like below
aaaa : b123
cccc : d456
eeee : g789
And then I want everything after the : starting with xx_
When I then move the b, press i and type xx_ then it looks like xx_b123
When I then press the down-key its position to insert a character between 5
and 6.
Is it possible to remap so that it goes to the postion between the <space>
and the d?
And when that looks like xx_d456 and I press the down-key it goes to the
postion between the <space> and the g?
You can prefix the j and k motion commands with CTRL-G to position
the cursor at the same insert start position.
After inserting xx_ before b123, press CTRL-G j, this will position the
cursor in the next line at the same position where the insert mode is
started in the current line.
For more information about this read,
:help ins-special-special
- Yegappan