Skip to content

Instantly share code, notes, and snippets.

@qstrahl
Last active November 21, 2017 18:13
Show Gist options
  • Save qstrahl/3b41a2e3593ffb3d331be46a7987ab5b to your computer and use it in GitHub Desktop.
Save qstrahl/3b41a2e3593ffb3d331be46a7987ab5b to your computer and use it in GitHub Desktop.
! vim: ft=xdefaults
! tell xterm to do the CSI-u thing for most cases
XTerm*formatOtherKeys: 1
XTerm*modifyOtherKeys: 1
! support ctrl/shift + backspace/space as well
XTerm*vt100.translations: #override \
Ctrl Shift <Key>BackSpace: string("\033[127;6u") \n\
Ctrl <Key>BackSpace: string("\033[127;5u") \n\
Shift <Key>BackSpace: string("\033[127;2u") \n\
Ctrl Shift <Key>space: string("\033[32;6u") \n\
Shift <Key>space: string("\033[32;2u")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment