On Wed, Oct 13, 2010 at 11:33 AM, Christian Brabandt <[email protected]> wrote:
> On Wed, October 13, 2010 5:26 pm, Christian Brabandt wrote:
>> BTW: You can bind those keys using the readline library. man readline
>> should give you enough info (I did it before, but can't show you an
>> example right now).
>
> e.g. put something like this in your .inputrc:
> "\e[1~": beginning-of-line
> "\e[4~": end-of-line

I did have this in my inputrc. What's happening when I hit home and
end (The problem is on my windows box, when I'm using Cygwin...home
and end appear to work ok on my linux box), is that it goes forward a
character and changes the case of it.  Sometimes I can see it go
forward 4 characters and change the case, which  is what you would
expect in vi if you hit escape, and then did 1~ or 4~
   I tried taking these lines out of the inputrc and the behavior's the same.

>
> e.g. press Ctrl-V followed by your key this will most likely output
> something like ^[[4~ which translates to \e[4~ in readline terms.

This is really strange, because what I want to specify is that in vi
mode, hitting the home and end keys should map to beginning and end of
line. Instead, it almost seems like when I hit the home and end keys,
it escapes, then does the vi command "1~". How odd. There are no
mappings for home and end in my vimrc. Yet the home and end keys work
fine as soon as I go into vim.  The inputrc on my windows and linux
box is the same, so I'm really puzzled where this strange behavior is
coming from. It only happens in vi mode. In emacs mode the commands
work just fine
   Ah well, maybe I'll just switch back to emacs mode.

Thanks,
Ven

>
> regards,
> Christian
>

-- 
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

Reply via email to