LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-21-2007, 06:50 PM   #1
psychobyte
Member
 
Registered: Sep 2003
Location: Central Coast, California
Posts: 179

Rep: Reputation: 30
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.
 
Old 04-21-2007, 11:02 PM   #2
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
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.
 
Old 04-23-2007, 03:40 PM   #3
psychobyte
Member
 
Registered: Sep 2003
Location: Central Coast, California
Posts: 179

Original Poster
Rep: Reputation: 30
Hmm,

when I try vim I still get the same problem....
 
Old 04-23-2007, 07:11 PM   #4
DJNolz83
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
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
 
Old 04-23-2007, 08:52 PM   #5
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
Quote:
Originally Posted by psychobyte
Hmm,

when I try vim I still get the same problem....
Strange, it works fine for me on Fiesty.
 
Old 04-23-2007, 10:34 PM   #6
vtel57
Member
 
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 858

Rep: Reputation: 88
Vi does not use the same navigation keys as Vim in some cases. See HERE.
 
Old 04-24-2007, 11:14 AM   #7
psychobyte
Member
 
Registered: Sep 2003
Location: Central Coast, California
Posts: 179

Original Poster
Rep: Reputation: 30
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?
 
Old 05-02-2007, 10:10 PM   #8
tyoungblood
LQ Newbie
 
Registered: Oct 2004
Distribution: FC2
Posts: 8

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

nocp turns off strict vi compatibility
 
  


Reply

Tags
gnometerminal, vi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arrow keys not working flamingvan Solaris / OpenSolaris 5 10-03-2006 05:47 AM
Shift-arrow and Alt-arrow keys don't work in xterm Aviv Hurvitz Linux - General 2 09-30-2006 03:43 PM
Scroll with arrow keys in the terminal window? halfpower Debian 1 09-28-2005 04:59 AM
VIM and the arrow keys Buto Linux - Software 1 09-16-2004 07:38 PM
Arrow keys dont work in JAVA under GNOME budhusa Linux - Hardware 1 02-08-2004 11:37 AM


All times are GMT -5. The time now is 12:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration