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. |
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.
|
Hmm,
when I try vim I still get the same problem.... |
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 |
Quote:
|
Vi does not use the same navigation keys as Vim in some cases. See HERE.
|
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? |
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:00 PM. |