When I enter mode in vim, all control keys (like arrow keys, delete keys etc.) produce characters instead of expected control behaviour. How can I change this? Thanks :)

link|improve this question
Works for me. Can you post the contents of /etc/vim/usr/share/vim/vimcurrent/debian.vim, /etc/vim/vimrc, and if present ~/.vimrc? You can use a link to paste.ubuntu.com instead of pasting everything into your question. – htorque Dec 6 '10 at 12:40
create a blank ~/.vimrc and restart vim. does that help? – karthick87 Dec 6 '10 at 12:55
Lol, I only had Vi and just installed Vim. Now it works perfectly.. don't know if there is still something to post or to be solved now :s thanks for the help :) – Lucasmus Dec 6 '10 at 12:59
Heh, don't worry - such things happen! :) IIRC you can close/delete your own questions. – htorque Dec 6 '10 at 13:35
feedback

2 Answers

up vote 2 down vote accepted

Try installing vim, instead. This is the default behavior of vi.

link|improve this answer
feedback

This may happen if

  1. you're actually using old vi not vim
  2. vim doesn't recognize or know your terminal type. in the shell you invoked vi from, type

    echo $TERM
    
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.