LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2011, 11:08 AM   #1
j360
Member
 
Registered: Jan 2010
Location: Maryland
Distribution: Ubuntu
Posts: 58

Rep: Reputation: 0
Smile VI problems


I've been having problems using VI editor. The biggest, no backspace. when I press it it goes back one character but doesn't delete. I tried ^H but not luck. The only way i can do it is going back and then pressing delete which is really annoying. Another problem is that after doing that the arrows don't work either. When I press the arrow keys it gives me letters instead such as ABCD, and yes I am on text/insert mode. I used putty before and I never had that problem. I'm using Ubuntu Lucid Lynx 64-bit.
 
Old 05-31-2011, 11:13 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
try export TERM=xterm before executing vi.
 
1 members found this post helpful.
Old 05-31-2011, 11:14 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,255

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
Is there a reason you don't install vim? If it is the standard vi editor then backspace is generally not a standard key and will not work as expected.
 
Old 05-31-2011, 11:16 AM   #4
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Or you could use 'vim'. Install the package 'vim' to get the proper vim (no gui version). Ubuntu ships something called vim-tiny by default iirc.

$ sudo apt-get install vim

Last edited by SkyEye; 05-31-2011 at 11:17 AM.
 
Old 05-31-2011, 11:20 AM   #5
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
I believe the OP is using vi on a remote machine, probably AIX or some other Unix. He mentioned using putty on Windows. He probably can't install anything there.
 
Old 05-31-2011, 11:23 AM   #6
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
He does say he uses Ubuntu. Maybe if he uses vim instead of vi to launch the editor, it might help. Unfortunately I don't have access to test any lucid box which I haven't installed vim on right now.
 
Old 05-31-2011, 06:25 PM   #7
j360
Member
 
Registered: Jan 2010
Location: Maryland
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 0
Smile

Thanks everyone
problem fixed
special thanks to SkyEye, I installed vim and then I launched VI(it might not make sense) and it works now. Everything is running the way is supposed to be
 
Old 05-31-2011, 07:43 PM   #8
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
Well, it actually does make sense, since vi is not really installed in your box, but a vi clone, eg vim (Vi IMproved). On my slack system I type "vi" but in fact I invoke elvis...
Try
Code:
ls -l /usr/bin | grep "vi ->"
 
Old 06-01-2011, 12:56 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Actually, on some distros the cmd 'vi' is set as an alias that invokes vim. However, the real vi is usally also avail.
Try 'which vi' or look in the same dir returned by 'which vim'.
 
  


Reply


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
Slackware 11 on a laptop (problems and problems and problems) kizersouzay Slackware 20 02-08-2007 11:52 AM
Fetchmail/Sendmail problems - some domains don't resolve (and other problems) Nylex Linux - Software 3 10-13-2006 12:56 PM
Marvell Yukon Network driver problems, Lilo Windows boot Problems mellowdog Slackware - Installation 7 01-25-2006 03:18 AM
Problems, problems, problems. Lets start with the soundcard Kre8ive Linux - Newbie 5 08-07-2003 02:20 AM
Problems, problems, problems. Lets start with the ES 1868 AudioDrive Kre8ive Linux - Newbie 1 08-06-2003 08:04 PM


All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration