[PLUTO-ildp] Traduzione collaborativa Using Vi (starting vi) ... :-)

Hugh Hartmann hhartmann a fastwebnet.it
Dom 17 Nov 2013 23:43:57 CET


un saluto "rattristato"  si estende a tutti i partecipanti alla lista .. 
fra poco pių di mezz'ora č lunedė ... ragazzi che tristezza :-))

Riporto qui di seguito la seconda sezione del testo Using Vi per la 
traduzione collaborativa .... :-)

[...]
2 Starting vi.
The best way to understand these concepts is to fire up vi and edit a 
file. The example `screens'' below show only a few lines of text, as if 
the screen were only six lines high instead of twenty-four.

The syntax for vi is:

vi filename <enter>

where filename is the name of the file to edit.

Start up vi by typing:

larry a mousehouse:~$ vi test <enter>

to edit the file test. You should see something like:

--------------------------------------------------------------------
__

~

~

~

~

~

~
"test" [New file]
---------------------------------------------------------------------

The column of ``~'' characters indicates you are at the end of the file. 
The __ represents the cursor.

3 Inserting text.
The vi program is now in command mode. Insert text into the file by 
pressing i, which places the editor into insert mode, and begin typing.

---------------------------------------------------------------------
Now is the time for all god men to come to the aid
of the party__
~

~

~

~

~
---------------------------------------------------------------------

Type as many lines as you want (pressing Enter after each). You may 
correct mistakes with the Backspace key.

To end insert mode and return to command mode, press Esc.

In command mode you can use the arrow keys to move around in the file. 
(If you have only one line of text, trying to use the up- or down-arrow 
keys will probably cause vi to beep at you.)

There are several ways to insert text other than the i command. The a 
command inserts text beginning after the current cursor position, 
instead of at the current cursor position. For example, use the left 
arrow key to move the cursor between the words ``good'' and ``men.''

----------------------------------------------------------------------
Now is the time for all god__men to come to the aid
of the party__
~

~

~

~

~
----------------------------------------------------------------------

Press a to start insert mode, type ``wo'', and then press Esc to return 
to command mode.

----------------------------------------------------------------------
Now is the time for all god women to come to the aid
of the party__
~

~

~

~

~
----------------------------------------------------------------------

To begin inserting text at the next line, use the o command. Press o and 
enter another line or two:

----------------------------------------------------------------------
Now is the time for all god women to come to the aid
of the party.
Afterwards, we'll go out for pizza and bier__

~

~

~

~
----------------------------------------------------------------------

[...]

Alla fine della traduzione/revisione questo testo potrebbe essere la 
base per un testo su vi pių completo ed esaustivo, aggiungendo consigli 
e comandi utili e presi dalla man page e/o dal vimtutorial, naturlmente 
č solo un idea ...



Good Night!
Hugh Hartmann





Maggiori informazioni sulla lista pluto-ildp