BleepingComputer.com: vi editor

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

vi editor Learning Unix programming

#1 User is offline   Reddoug 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 88
  • Joined: 08-January 09

Posted 05 September 2010 - 07:21 AM

Hi
Trying to learn Unix programming using vi editor. One step I am having trouble with is getting INSERT to come up. Book say when I type"i" I should get INSERT at bottom of the screen and I do not. I am using Ubuntu 10.4. I am just starting out with this.

Thanks, Doug

#2 User is offline   cryptodan 

  • Bleepin Madman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 18,367
  • Joined: 08-September 08
  • Gender:Male
  • Location:Catonsville, Md

Posted 05 September 2010 - 01:26 PM

Try using "a" its what i use to begin editing a file or creating a new one. If I find that I made a mistake thats when I use "i".

< The Vim commands cheat sheet - 1.2 >

My work schedule is as follows: Mon and Tues 1800 to 0600, Friday - Sunday 1800EST to 0600, and Wednesday to Thursday 1800est to 0600. So if I do not respond right away I am at work.
----------------
If I am helping you, then Please Send Me a Message!with your thread link in it. This is only if I haven't replied back to you within 24 to 48 hours.
----------------
My Main Site || My Backup Site || steam://friends/add/cryptodan Add me to your Steam Friends.

#3 User is offline   Reddoug 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 88
  • Joined: 08-January 09

Posted 06 September 2010 - 08:33 AM

Thanks for the link. Looks very helpful.

Doug

#4 User is offline   ejames82 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 383
  • Joined: 16-August 06
  • Location:oswego, ny

Posted 07 September 2010 - 08:37 PM

when you first get into the screen that you want to edit, look in the lower left hand corner and notice the character there. if it changes when you press i, then you should be able to edit. when you're done, watch that character (it usually changes from a hyphen to an I, and then back for me), then push esc. after that i type these to save and quit

:
w
q

but it will look like this, substituting the hyphen and the I with

:wq

always watch those characters in the lower left, they "inform" you of your status, so to speak.

then push enter and the file turns into the regular terminal characters

ed@ed-desktop:~$

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users