LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   gnome-terminal: vi and arrow keys (https://www.linuxquestions.org/questions/ubuntu-63/gnome-terminal-vi-and-arrow-keys-547952/)

psychobyte 04-21-2007 06:50 PM

gnome-terminal: vi and arrow keys
 
Hi,

I'm using fiesty but, I also had this problem with 6.1.

using gnome-terminal and vi, I go into insert mode then pressing any of the arrow keys I get "A", "B" , "C","D" written to the terminal. How do I fix this? is this a problem with gnome, gnome-terminal, or vi?

Thanks.

aznluvsmc 04-21-2007 11:02 PM

I notice the same problem. Anyways, to fix it just use the 'vim' command instead of 'vi'. I think for some reason, if you use 'vi' as the command it runs in 'vi' mode even if the executable is the new 'vim' one.

psychobyte 04-23-2007 03:40 PM

Hmm,

when I try vim I still get the same problem....

DJNolz83 04-23-2007 07:11 PM

I have noticed the same thing wehre I work

We use a Unix xhell a lot here, and I have found that I cannot navigate a document (zone file) in vi without dropping back into visual mode.
I use Ubuntu at home, and find that this is not as much of a problem.

Basically, I think this has something to do with Vi (or Vim) due to the fact that it may not recognize anything beyond the "qwerty" side of the keybourd (including your number pad) - although I may be wrong on this.

If you want to navigate the document in Vi, and you are in insert/edit mode, I would suggest hitting the "esc" key (to drop back to visual mode) and then navigating that way.

Either that or edit the document using gedit! lol

aznluvsmc 04-23-2007 08:52 PM

Quote:

Originally Posted by psychobyte
Hmm,

when I try vim I still get the same problem....

Strange, it works fine for me on Fiesty.

vtel57 04-23-2007 10:34 PM

Vi does not use the same navigation keys as Vim in some cases. See HERE.

psychobyte 04-24-2007 11:14 AM

I suppose if some people are having a problem and others are not then the only real difference is their
keyboards. Perhaps I'll try a different keyboard mapping?

tyoungblood 05-02-2007 10:10 PM

1. vi ~/.exrc
2. type: set nocp
3. Save and Quit
4. Use VI

nocp turns off strict vi compatibility


All times are GMT -5. The time now is 07:39 PM.