How to capture shift-tab in vim

Posted by Yogesh Arora on Stack Overflow See other posts from Stack Overflow or by Yogesh Arora
Published on 2010-04-30T14:58:48Z Indexed on 2010/04/30 15:07 UTC
Read the original article Hit count: 390

Filed under:
|
|

I want to use shift-tab for auto completion and shifting code blocks visually. I have been referring to Make_Shift-Tab_work . That link talks about mapping ^[[Z to shift-tab . But i don't get ^[[Z when i press shift-tab. i just get a normal tab in that case.

It then talks about using xmodmap -pke | grep 'Tab' to map tab keys. According to that the output should be

keycode 23 = Tab
or
keycode 23 = Tab ISO_Left_Tab

However i get

keycode  22 = Tab KP_Tab

if i use xmodmap -e 'keycode 22 = Tab ISO_Left_Tab' and after that xmodmap -pke | grep 'Tab', I still get

keycode  22 = Tab KP_Tab

This means running xmodmap -e 'keycode 22 = Tab ISO_Left_Tab' has no effect.

In the end the link mentions using xev to see what X recieves when i press shift-tab. But i dont have xev on my system.

Is there any other way i can capture shift-tab in vim

© Stack Overflow or respective owner

Related posts about vim

Related posts about x11