Sunday, January 14, 2007

Fixing some xterm crazyness.

I started to get a bit annoyed of the fact that ctrl+left in Vim didn't work, and instead produced a new line and a d.
From the output of cat -v, and then ctrl+left I can see that somehow my urxvt sends a ^[0d sequence, that unfortunately is perfectly valid in Vim, and causes a new line and a d, infact.

So I did an extensive remapping in vimrc that unfortunately blogger is too stupid to let me paste, but maybe they are useful for someone. Something like:

map [esc]0d [C-left]

where [ and ] should be replaced with the greater and lessthen symbols. (that I can't managed to get in blogger, God knows why)
Post a Comment