public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* vi insertion question
@  Ned
   ` Ned
   ` Ralph W. Reid
  0 siblings, 2 replies; 3+ messages in thread
From: Ned @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

HI list,

I am trying to insert a line in a document with vi.
Precisely, I need to insert that line to be the first one in the document.
How can I turn on/off the insertion mode in vi?
Acording to instructor, we have to use the escape key to get out of the insert mode for every new line.
How can I switch btw the modes in vi and how can I know in what mode is the program at?

Many thanks!
Ned

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vi insertion question
   vi insertion question Ned
@  ` Ned
   ` Ralph W. Reid
  1 sibling, 0 replies; 3+ messages in thread
From: Ned @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Ooo, I fixed that one.
Now I don't know how to use the "r'" command to replace a character.
This is becoming exciting!

Thanks in advance!
Ned
----- Original Message ----- 
From: "Ned" <ngranic@cox.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Sent: Monday, March 21, 2005 1:28 PM
Subject: vi insertion question


HI list,

I am trying to insert a line in a document with vi.
Precisely, I need to insert that line to be the first one in the document.
How can I turn on/off the insertion mode in vi?
Acording to instructor, we have to use the escape key to get out of the 
insert mode for every new line.
How can I switch btw the modes in vi and how can I know in what mode is the 
program at?

Many thanks!
Ned
_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vi insertion question
   vi insertion question Ned
   ` Ned
@  ` Ralph W. Reid
  1 sibling, 0 replies; 3+ messages in thread
From: Ralph W. Reid @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

Pressing the escape extra times will not generally do any harm--it
will just back you out of insert mode and into command mode, and the
extra escape key presses will only keep you in command mode.  Some
versions of vi (and vim) can be set up to beep the speaker if the
escape key is pressed once the editor is already in command mode.
Therefore, pressing the escape key several times should insure that
you are in command mode, and you can continue working from there.  I
am not sure why you should have to jump out and back into insert mode
for every line of text--I always simply hit the enter key to get to
the next line.

As for inserting a line at the top of a file, go to the top of the
file while in command mode with ':1', and then press a capital 'O' to
put a line above the current line.

HTH and have a _great_ day.

On Mon, Mar 21, 2005 at 01:28:48PM -0700, Ned wrote:
> HI list,
> 
> I am trying to insert a line in a document with vi.
> Precisely, I need to insert that line to be the first one in the document.
> How can I turn on/off the insertion mode in vi?
> Acording to instructor, we have to use the escape key to get out of the insert mode for every new line.
> How can I switch btw the modes in vi and how can I know in what mode is the program at?
> 
> Many thanks!
> Ned
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
Ralph.  N6BNO.  Wisdom comes from central processing, not from I/O.
rreid@sunset.net  http://personalweb.sunset.net/~rreid
...passing through The City of Internet at the speed of light!
SEC (x) / COSEC (x) = (TAN (x) / COTAN (x)) ^ 2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 vi insertion question Ned
 ` Ned
 ` Ralph W. Reid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).