Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have the latest Cygwin installed on a Windows 7 PC. When using the Vim editor, my Home and End keys don't work when $TERM=linux. If I change to $TERM=xterm, these keys work OK.

  • When $TERM=linux and I push Home key, Vim bottom right/status line shows: ^[[H.
  • When $TERM=linux and I push End key, Vim bottom right/status line shows: ^[[F.

I am unsure if this is a $HOME/.vimrc or $HOME/.inputrc issue.

Any ideas why xterm works but linux does not?

Config details

echo $TERM => linux

From my .inputrc file:

# the following line is actually
# equivalent to "\C-?": delete-char
"\e[3~": delete-char

# VT
"\e[1~": beginning-of-line
"\e[4~": end-of-line

# kvt
"\e[H": beginning-of-line
"\e[F": end-of-line

# rxvt and konsole (i.e. the KDE-app...)
"\e[7~": beginning-of-line
"\e[8~": end-of-line

# VT220
"\eOH": beginning-of-line
"\eOF": end-of-line

# Don't ring bell on completion
set bell-style none
share|improve this question
    
TERM=linux is supposed to be used with the virtual console or tty on linux systems. –  FDinoff Jun 4 '13 at 23:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.