thanks for :
URxvt.keysym.Control-Up: \033[1;5A
URxvt.keysym.Control-Down: \033[1;5B
URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C
you need the ":"do you know other important keysym to modify to have urxvt again more compatible with vim
Don't necro-bump please, see here.
Closing.
]]>do you know other important keysym to modify to have urxvt again more compatible with vim
]]>I dropped those mappings in my .Xdefaults, reloaded them with xrdb, restarted urxvt, and behold... Ctrl+Left/Right works again . Thanks a lot!
]]>The solution that RedHat uses is to modify /etc/inputrc. I assume that means that ~/.inputrc can be used also. These are the two lines that they added in the rxvt section for Ctrl <Right, Left>:
"\eOc": forward-word
"\eOd": backward-word
Skottish, I already have those in my ~/.inputrc. The thing is, I understood /etc/inputrc and ~/.inputrc are used by readline and apps using it, but vim is not one of them. Those sequences make Ctrl+Right/Left work like in xterm and similar terminals (Xfce's terminal e.g.) - you can jump words - but Vim won't pick it up, since it doesn't use readline.
]]>URxvt.keysym.Control-Up \033[1;5A
URxvt.keysym.Control-Down \033[1;5B
URxvt.keysym.Control-Left \033[1;5D
URxvt.keysym.Control-Right \033[1;5C
URxvt.keysym.M-Down: \033[1;3B
URxvt.keysym.M-Up: \033[1;3A
URxvt.keysym.M-Left: \033[1;3D
URxvt.keysym.M-Right: \033[1;3C
I expect you can do something similar with the control-key combination. And of course, do not forget to load your .Xresources at the beginning of your X session if you are not doing this already!
]]>"\eOc": forward-word
"\eOd": backward-word
Seriously... If that's all you can come up with, keep your hand off that post button and spare both of us the effort .
]]>Does someone know what I'm doing wrong?
You're using arrow keys with vi
]]>I have been trying to map them in my ~/.virc to reproduce the behaviour, but that's not working (and I'm clueless why). This is the excerpt from .virc:
map ^[Oc W
map ^[Od B
map! ^[Oc ^[Wa
map! ^[Od ^[Ba
Ctrl+Left generates ^[Od, Ctrl+Right generates ^[Oc. Vi will put itself in insert mode (if it isn't already) when i press those combinations and insert a d or c, depending on the combination pressed, but no jumping words.
Does someone know what I'm doing wrong?
]]>