Re: The wonders of keymaping...
From: Yakov Lerner [EMAIL PROTECTED] Subject: Re: The wonders of keymaping... Date: Thu, 21 Sep 2006 20:46:37 +0300 On 9/21/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: Hi, I wanted to remap Ctrl-e to Ctrl-Up and Ctrl-y to Ctrl-Down . In my .vimrc I wrote nnoremap C-e C-Up nnoremap C-y C-Down Hmmm ... did you possibly want[ed] to do: nnoremap C-Up C-e nnoremap C-Down C-y ? Yakov Ough...I get some headache now...wait... I _thought_ it would work like *map old code new code so you can use new code to perform the functionality of old code. And when I look at the help pages of map I think (...) this is how it works. Or in other words: I want the functionality of CTRL-e performed when pressing CTRL-UP. But it is late in the evening, I did a lot of programming today and I would wish the white mice on my keyboard would go away, when the big white rabbit will appear in the door... No, I am not using drugs... ;) I *hate* drugs. Keep hacking! mcc (sleepy)
Re: The wonders of keymaping...
On 9/21/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: From: Yakov Lerner [EMAIL PROTECTED] Subject: Re: The wonders of keymaping... Date: Thu, 21 Sep 2006 20:46:37 +0300 On 9/21/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: Hi, I wanted to remap Ctrl-e to Ctrl-Up and Ctrl-y to Ctrl-Down . In my .vimrc I wrote nnoremap C-e C-Up nnoremap C-y C-Down Hmmm ... did you possibly want[ed] to do: nnoremap C-Up C-e nnoremap C-Down C-y ? Yakov Ough...I get some headache now...wait... I _thought_ it would work like *map old code new code 'map X Y' is best explained likethis: When you press keys X, perform Y (that is, act as if user typed Y). Yakov
Re: The wonders of keymaping...
From: Yakov Lerner [EMAIL PROTECTED] Subject: Re: The wonders of keymaping... Date: Thu, 21 Sep 2006 21:12:56 +0300 On 9/21/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: From: Yakov Lerner [EMAIL PROTECTED] Subject: Re: The wonders of keymaping... Date: Thu, 21 Sep 2006 20:46:37 +0300 On 9/21/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: Hi, I wanted to remap Ctrl-e to Ctrl-Up and Ctrl-y to Ctrl-Down . In my .vimrc I wrote nnoremap C-e C-Up nnoremap C-y C-Down Hmmm ... did you possibly want[ed] to do: nnoremap C-Up C-e nnoremap C-Down C-y ? Yakov Ough...I get some headache now...wait... I _thought_ it would work like *map old code new code 'map X Y' is best explained likethis: When you press keys X, perform Y (that is, act as if user typed Y). Yakov ok...now it works...it is __really__ too late for me now It seems I am starting to confuse my left hand with my right feet... ;) I will shutdown now...see/mail you tomorrow ... Good night! And thanks for all help! mcc