Thursday, April 17, 2008

Setting up urxvt for vim

urxvt is quite nice at being xterm-compatible, but it lacks proper C-Left and C-Right handling in vim (esc-sequences are different from xterm).

fix is quite simple. just add following lines to your X-resources file:

URxvt.keysym.C-Left: \033[1;5D
URxvt.keysym.C-Right: \033[1;5C

and merge it (i use ~/.Xdefaults):

xrdb -merge ~/.Xdefaults

done!

3 comments:

Anonymous said...

Thanks to you, everything is better today :)

I added these: (PgUp/Down are usefull for tabs and I use C-Down to create a new one...)

URxvt.keysym.C-Down: \033[1;5B
URxvt.keysym.C-Prior: \033[6;5~
URxvt.keysym.C-Next: \033[5;5~

waker said...

you're welcome :)

st. said...

i think i'm the only one who has troubles with vim tabs in urxvt.
thanx.