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've set the shell variable in Console2 to:

C:\cygwin\bin\bash.exe --login -i

I then launch vim. When I do so two problems happen

While in normal mode if I press an arrow key once nothing happens. If I press an arrow key repeatedly then I can move in the required direction although the first keypress is ignored. The string '^[[C', no quotes, is displayed in the statusline when I press the right key. Similarly for up, down and left but with A, B and C instead.

While in insert mode I have the same problem with the additional behaviour that a capital letter (A, B, C or D) is output momentarily at the cursor location before disappearing. Once I stop navigating with the arrow keys the editor returns to normal mode after a second or so.

I am using /usr/share/vim/vim73/vimrc_example.vim

What is going wrong here?

share|improve this question

migrated from stackoverflow.com Jun 5 '13 at 5:57

This question came from our site for professional and enthusiast programmers.

    
I use cygwin and launched vim and did not see this issue. I found on vimrc_example.vim online and used it and still did not see this issue. My guess is there is a mapping that is delaying the movement. If you do not press another arrow key, does the cursor eventually move? If not can you give the specific online path of the vimrc_example.vim file that you are using? –  cforbish Jun 5 '13 at 1:54
    
@cforbish I've edited the question to name the .vimrc I'm using. Waiting does not make the cursor move, only a subsequent keypress. Please confirm that you are using Console2. –  lovelyzoo Jun 9 '13 at 20:37
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.