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
Page 1 of 1
vi editor Learning Unix programming
#2
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 >
< 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.
#4
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:~$
:
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

Help


Back to top









