annotate runtime/tutor/tutor.it @ 12499:d91cf2e26ef0

Update runtime files. commit https://github.com/vim/vim/commit/37c64c78fd87e086b5a945ad7032787c274e2dcb Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 19 22:06:03 2017 +0200 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Sep 2017 22:15:06 +0200
parents c391bfbdb452
children 172f18a3a6cd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1629
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
1 ===============================================================================
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
2 = Benvenuto alla G u i d a all'Editor V I M - Versione 1.7 =
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
3 ===============================================================================
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
4
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
5 Vim è un Editor molto potente ed ha parecchi comandi, troppi per
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
6 spiegarli tutti in una guida come questa. Questa guida serve a
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
7 descrivere quei comandi che ti permettono di usare facilmente
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
8 Vim come Editor di uso generale.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
9
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
10 Il tempo necessario per completare la guida è circa 25-30 minuti,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
11 a seconda di quanto tempo dedichi alla sperimentazione.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
12
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
13 ATTENZIONE!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
14 I comandi nelle lezioni modificano questo testo. Fai una copia di questo
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
15 file per esercitarti (se hai usato "vimtutor", stai già usando una copia).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
16
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
17 E' importante non scordare che questa guida vuole insegnare tramite
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
18 l'uso. Questo vuol dire che devi eseguire i comandi per impararli
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
19 davvero. Se leggi il testo e basta, dimenticherai presto i comandi!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
20
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
21 Adesso, assicurati che il tasto BLOCCA-MAIUSCOLO non sia schiacciato
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
22 e premi il tasto j tanto da muovere il cursore fino a che la
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
23 Lezione 1.1 riempia completamente lo schermo.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
24 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
25 Lezione 1.1: MOVIMENTI DEL CURSORE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
26
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
27
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
28 ** Per muovere il cursore, premi i tasti h,j,k,l come indicato. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
29 ^
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
30 k NOTA: Il tasto h è a sinistra e muove a sinistra.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
31 < h l > Il tasto l è a destra e muove a destra.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
32 j Il tasto j ricorda una freccia in giù.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
33 v
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
34 1. Muovi il cursore sullo schermo finché non ti senti a tuo agio.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
35
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
36 2. Tieni schiacciato il tasto "giù" (j) finché non si ripete il movimento.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
37 Adesso sai come arrivare fino alla lezione seguente.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
38
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
39 3. Usando il tasto "giù" spostati alla Lezione 1.2.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
40
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
41 NOTA: Quando non sei sicuro del tasto che hai premuto, premi <ESC> per andare
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
42 in Modalità Normale [Normal Mode]. Poi ri-immetti il comando che volevi.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
43
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
44 NOTA: I tasti con le frecce fanno lo stesso servizio. Ma usando hjkl riesci
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
45 a muoverti molto più rapidamente, dopo che ci si abitua. Davvero!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
46
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
47 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
48 Lezione 1.2: USCIRE DA VIM
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
49
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
50
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
51 !! NOTA: Prima di eseguire quanto richiesto, leggi la Lezione per intero!!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
52
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
53 1. Premi il tasto <ESC> (per assicurarti di essere in Modalità Normale).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
54
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
55 2. Batti: :q! <INVIO>.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
56 Così esci dall'Editor SCARTANDO qualsiasi modifica fatta.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
57
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
58 3. Quando vedi il PROMPT della Shell, batti il comando con cui sei arrivato
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
59 qui. Sarebbe: vimtutor <INVIO>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
60
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
61 4. Se hai memorizzato questi comandi e ti senti pronto, esegui i passi
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
62 da 1 a 3 per uscire e rientrare nell'Editor.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
63
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
64 NOTA: :q! <INVIO> SCARTA qualsiasi modifica fatta. In una delle prossime
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
65 lezioni imparerai come salvare un file che hai modificato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
66
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
67 5. Muovi in giù il cursore per passare alla lezione 1.3.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
68
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
69
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
70 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
71 Lezione 1.3: MODIFICA DI TESTI - CANCELLAZIONE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
72
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
73
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
74 ** Premere x per cancellare il carattere sotto al cursore **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
75
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
76 1. Muovi il cursore alla linea più sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
77
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
78 2. Per correggere errori, muovi il cursore fino a posizionarlo sopra il
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
79 carattere da cancellare.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
80
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
81 3. Premi il tasto x per cancellare il carattere sbagliato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
82
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
83 4. Ripeti i passi da 2 a 4 finché la frase è corretta.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
84
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
85 ---> La mmucca saltòò finnoo allaa lunnna.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
86
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
87 5. Ora che la linea è corretta, vai alla Lezione 1.4
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
88
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
89 NOTA: Mentre segui questa guida, non cercare di imparare a memoria,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
90 ma impara facendo pratica.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
91
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
92
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
93 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
94 Lezione 1.4: MODIFICA DI TESTI - INSERIMENTO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
95
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
96
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
97 ** Premere i per inserire testo. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
98
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
99 1. Muovi il cursore alla prima linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
100
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
101 2. Per rendere la prima linea uguale alla seconda, muovi il cursore sopra
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
102 il primo carattere DOPO la posizione in cui il testo va inserito.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
103
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
104 3. Premi i e batti le aggiunte opportune.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
105
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
106 4. Quando un errore è corretto, premi <ESC> per tornare in Modalità Normale.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
107 Ripeti i passi da 2 a 4 fino a completare la correzione della frase.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
108
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
109 ---> C'era del tsto mncnt questa .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
110 ---> C'era del testo mancante da questa linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
111
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
112 5. Quando sei a tuo agio nell'inserimento di testo vai alla lezione 1.5.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
113
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
114
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
115
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
116 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
117 Lezione 1.5: MODIFICA DI TESTI - AGGIUNTA
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
118
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
119
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
120 ** Premere A per aggiungere testo a fine linea. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
121
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
122 1. Muovi il cursore alla prima linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
123 Non importa dove è posizionato il cursore sulla linea stessa.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
124
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
125 2. Batti A e inserisci le necessarie aggiunte.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
126
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
127 3. Alla fine della aggiunta premi <ESC> per tornare in modalità Normale.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
128
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
129 4. Muovi il cursore alla seconda linea indicata ---> e ripeti
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
130 i passi 2 e 3 per correggere questa frase.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
131
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
132 ---> C'è del testo che manca da qu
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
133 C'è del testo che manca da questa linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
134 ---> C'è anche del testo che ma
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
135 C'è anche del testo che manca qui.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
136
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
137 5. Quando sei a tuo agio nell'aggiunta di testo vai alla lezione 1.6.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
138
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
139 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
140 Lezione 1.6: MODIFICARE UN FILE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
141
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
142
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
143 ** Usare :wq per salvare un file e uscire. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
144
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
145 !! NOTA: Prima di eseguire quanto richiesto, leggi la Lezione per intero!!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
146
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
147 1. Esci da Vim come hai fatto nella lezione 1.2: :q!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
148
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
149 2. Quando vedi il PROMPT della Shell, batti il comando: vim tutor <INVIO>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
150 'vim' è il comando per richiamare Vim, 'tutor' è il nome del file che
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
151 desideri modificare. Usa un file che possa essere modificato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
152
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
153 3. Inserisci e cancella testo come hai imparato nelle lezioni precedenti.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
154
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
155 4. Salva il file ed esci da Vim con: :wq <INVIO>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
156
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
157 5. Rientra in vimtutor e scendi al sommario che segue.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
158
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
159 6. Dopo aver letto i passi qui sopra ed averli compresi: eseguili.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
160
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
161
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
162 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
163 Lezione 1 SOMMARIO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
164
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
165
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
166 1. Il cursore si muove usando i tasti con le frecce o i tasti hjkl.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
167 h (sinistra) j (giù) k (su) l (destra)
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
168
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
169 2. Per eseguire Vim dal PROMPT della Shell batti: vim NOMEFILE <INVIO>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
170
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
171 3. Per uscire da Vim batti: <ESC> :q! <INVIO> per uscire senza salvare.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
172 oppure batti: <ESC> :wq <INVIO> per uscire salvando modifiche.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
173
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
174 4. Per cancellare il carattere sotto al cursore batti: x
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
175
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
176 5. Per inserire testo subito prima del cursore batti:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
177 i batti testo inserito <ESC> inserisci prima del cursore
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
178 A batti testo aggiunto <ESC> aggiungi a fine linea
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
179
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
180 NOTA: premendo <ESC> ritornerai in Modalità Normale o annullerai
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
181 un comando errato che puoi aver inserito in parte.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
182
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
183 Ora continua con la Lezione 2.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
184
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
185 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
186 Lezione 2.1: COMANDI DI CANCELLAZIONE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
187
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
188
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
189 ** Batti dw per cancellare una parola. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
190
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
191 1. Premi <ESC> per accertarti di essere in Modalità Normale.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
192
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
193 2. Muovi il cursore fino alla linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
194
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
195 3. Muovi il cursore all'inizio di una parola che vuoi cancellare.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
196
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
197 4. Batti dw per cancellare la parola.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
198
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
199 NOTA: La lettera d sarà visibile sull'ultima linea dello schermo mentre la
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
200 batti. Vim attende che tu batta w . Se vedi una lettera diversa
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
201 da d hai battuto qualcosa di sbagliato; premi <ESC> e ricomincia.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
202
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
203 ---> Ci sono le alcune parole gioia che non c'entrano carta in questa frase.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
204
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
205 5. Ripeti i passi 3 e 4 finché la frase è corretta, poi vai alla Lezione 2.2.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
206
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
207
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
208 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
209 Lezione 2.2: ALTRI COMANDI DI CANCELLAZIONE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
210
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
211
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
212 ** Batti d$ per cancellare fino a fine linea. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
213
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
214 1. Premi <ESC> per accertarti di essere in Modalità Normale.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
215
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
216 2. Muovi il cursore fino alla linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
217
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
218 3. Muovi il cursore alla fine della linea corretta (DOPO il primo . ).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
219
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
220 4. Batti d$ per cancellare fino a fine linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
221
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
222 ---> Qualcuno ha battuto la fine di questa linea due volte. linea due volte.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
223
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
224
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
225 5. Vai alla Lezione 2.3 per capire il funzionamento di questo comando.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
226
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
227
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
228
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
229
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
230
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
231 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
232 Lezione 2.3: OPERATORI E MOVIMENTI
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
233
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
234
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
235 Molti comandi di modifica testi consistono in un operatore e un movimento.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
236 Il formato del comando di cancellazione con l'operatore d è il seguente:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
237
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
238 d movimento
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
239
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
240 Dove:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
241 d - è l'operatore di cancellazione
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
242 movimento - indica dove l'operatore va applicato (lista qui sotto).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
243
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
244 Breve lista di movimenti:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
245 w - fino a inizio della parola seguente, ESCLUSO il suo primo carattere.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
246 e - alla fine della parola corrente, COMPRESO il suo ultimo carattere.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
247 $ - dal cursore fino a fine linea, COMPRESO l'ultimo carattere della linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
248
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
249 Quindi se batti de cancelli dal cursore fino a fine parola.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
250
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
251 NOTA: Se batti solo il movimento mentre sei in Modalità Normale, senza
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
252 nessun operatore, il cursore si muoverà come specificato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
253
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
254 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
255 Lezione 2.4: USO DI UN CONTATORE PER UN MOVIMENTO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
256
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
257
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
258 ** Se batti un numero prima di un movimento, lo ripeti altrettante volte. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
259
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
260 1. Muovi il cursore fino all'inizio della linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
261
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
262 2. Batti 2w per spostare il cursore due parole più avanti.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
263
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
264 3. Batti 3e per spostare il cursore alla fine della terza parola seguente.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
265
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
266 4. Batti 0 (zero) per posizionarti all'inizio della linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
267
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
268 5. Ripeti i passi 2 e 3 usando numeri differenti.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
269
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
270 ---> Questa è solo una linea con parole all'interno della quale puoi muoverti.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
271
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
272 6. Vai alla Lezione 2.5.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
273
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
274
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
275
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
276
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
277 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
278 Lezione 2.5: USO DI UN CONTATORE PER CANCELLARE DI PIU'
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
279
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
280
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
281 ** Se batti un numero prima di un movimento, lo ripeti altrettante volte. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
282
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
283 Nella combinazione dell'operatore cancella e di un movimento, descritto prima,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
284 inserite un contatore prima del movimento per cancellare di più:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
285 d numero movimento
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
286
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
287 1. Muovi il cursore alla prima parola MAIUSCOLA nella riga indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
288
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
289 2. Batti d2w per cancellare le due parole MAIUSCOLE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
290
2214
f8222d1f9a73 Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents: 1629
diff changeset
291 3. Ripeti i passi 1 e 2 con un contatore diverso per cancellare le parole
1629
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
292 MAIUSCOLE consecutive con un solo comando
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
293
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
294 ---> questa ABC DE linea FGHI JK LMN OP di parole è Q RS TUV ora ripulita.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
295
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
296
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
297
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
298
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
299
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
300 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
301 Lezione 2.6: LAVORARE SU LINEE INTERE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
302
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
303 ** Batti dd per cancellare un'intera linea. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
304
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
305 Per la frequenza con cui capita di cancellare linee intere, chi ha
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
306 disegnato Vi ha deciso che sarebbe stato più semplice battere
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
307 due d consecutive per cancellare una linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
308
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
309 1. Muovi il cursore alla linea 2) nella frase qui sotto.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
310 2. Batti dd per cancellare la linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
311 3. Ora spostati alla linea 4).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
312 4. Batti 2dd per cancellare due linee.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
313
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
314 ---> 1) Le rose sono rosse,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
315 ---> 2) Il fango è divertente,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
316 ---> 3) Le viole sono blu,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
317 ---> 4) Io ho un'automobile,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
318 ---> 5) Gli orologi segnano il tempo,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
319 ---> 6) Lo zucchero è dolce,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
320 ---> 7) E così sei anche tu.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
321
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
322
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
323 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
324 Lezione 2.7: IL COMANDO UNDO [ANNULLA]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
325
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
326 ** Premi u per annullare gli ultimi comandi eseguiti. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
327 ** Premi U per annullare le modifiche all'ultima linea. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
328
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
329 1. Muovi il cursore fino alla linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
330 e posizionati sul primo errore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
331 2. Batti x per cancellare il primo carattere sbagliato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
332 3. Adesso batti u per annullare l'ultimo comando eseguito.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
333 4. Ora invece, correggi tutti gli errori sulla linea usando il comando x .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
334 5. Adesso batti una U Maiuscola per riportare la linea al suo stato originale.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
335 6. Adesso batti u più volte per annullare la U e i comandi precedenti.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
336 7. Adesso batti più volte CTRL-r (tieni il tasto CTRL schiacciato
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
337 mentre batti r) per rieseguire i comandi (annullare l'annullamento).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
338
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
339 ---> Correeggi gli errori ssu quuesta linea e riimpiazzali coon "undo".
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
340
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
341 8. Questi comandi sono molto utili. Ora spostati al Sommario della Lezione 2.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
342
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
343
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
344
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
345
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
346 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
347 Lezione 2 SOMMARIO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
348
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
349
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
350 1. Per cancellare dal cursore fino alla parola seguente batti: dw
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
351 2. Per cancellare dal cursore fino alla fine della linea batti: d$
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
352 3. Per cancellare un'intera linea batti: dd
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
353 4. Per eseguire più volte un movimento, mettici davanti un numero: 2w
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
354 5. Il formato per un comando di modifica è:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
355
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
356 operatore [numero] movimento
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
357 dove:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
358 operatore - indica il da farsi, ad es. d per [delete] cancellare
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
359 [numero] - contatore facoltativo di ripetizione del movimento
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
360 movimento - spostamento nel testo su cui operare, ad es.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
361 w [word] parola, $ (fino a fine linea), etc.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
362
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
363 6. Per andare a inizio linea usate uno zero: 0
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
364 7. Per annullare i comandi precedenti, batti: u (u minuscola)
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
365 Per annullare tutte le modifiche a una linea batti: U (U maiuscola)
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
366 Per annullare l'annullamento ["redo"] batti: CTRL-r
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
367
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
368
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
369 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
370 Lezione 3.1: IL COMANDO PUT [METTI, PONI]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
371
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
372
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
373 ** Batti p per porre [put] testo (cancellato prima) dopo il cursore. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
374
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
375 1. Muovi il cursore alla prima linea indicata con ---> qui in basso.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
376
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
377 2. Batti dd per cancellare la linea e depositarla in un registro di Vim.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
378
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
379 3. Muovi il cursore fino alla linea c) SOPRA quella dove andrebbe messa
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
380 la linea appena cancellata.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
381
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
382 4. Batti p per mettere la linea sotto il cursore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
383
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
384 5. Ripeti i passi da 2 a 4 per mettere tutte le linee nel giusto ordine.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
385
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
386 ---> d) Puoi impararla tu?
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
387 ---> b) Le viole sono blu,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
388 ---> c) La saggezza si impara,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
389 ---> a) Le rose sono rosse,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
390
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
391
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
392 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
393 Lezione 3.2: IL COMANDO REPLACE [RIMPIAZZARE]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
394
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
395
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
396 ** Batti rx per rimpiazzare il carattere sotto al cursore con x . **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
397
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
398 1. Muovi il cursore alla prima linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
399
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
400 2. Muovi il cursore fino a posizionarlo sopra il primo errore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
401
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
402 3. Batti r e poi il carattere che dovrebbe stare qui.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
403
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
404 4. Ripeti i passi 2 e 3 finché la prima linea è uguale alla seconda.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
405
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
406 ---> Ammattendo quetta lince, qualcuno ho predato alcuni tosti sballiati!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
407 ---> Immettendo questa linea, qualcuno ha premuto alcuni tasti sbagliati!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
408
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
409 5. Ora passa alla Lezione 3.2.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
410
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
411 NOTA: Ricordati che dovresti imparare con la pratica, non solo leggendo.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
412
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
413
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
414
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
415 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
416 Lezione 3.3: L'OPERATORE CHANGE [CAMBIA]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
417
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
418
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
419 ** Per cambiare fino alla fine di una parola, batti ce . **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
420
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
421 1. Muovi il cursore alla prima linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
422
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
423 2. Posiziona il cursore alla u in lubw.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
424
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
425 3. Batti ce e la parola corretta (in questo caso, batti inea ).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
426
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
427 4. Premi <ESC> e vai sul prossimo carattere da modificare.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
428
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
429 5. Ripeti i passi 3 e 4 finché la prima frase è uguale alla seconda.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
430
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
431 ---> Questa lubw ha alcune pptfd da asdert usgfk l'operatore CHANGE.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
432 ---> Questa linea ha alcune parole da cambiare usando l'operatore CHANGE.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
433
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
434 Nota che ce cancella la parola, e ti mette anche in Modalità Inserimento
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
435 [Insert Mode]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
436
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
437
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
438 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
439 Lezione 3.4: ALTRI CAMBIAMENTI USANDO c
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
440
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
441 ** L'operatore c [CHANGE] agisce sugli stessi movimenti di d [DELETE] **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
442
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
443 1. L'operatore CHANGE si comporta come DELETE. Il formato è:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
444
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
445 c [numero] movimento
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
446
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
447 2. I movimenti sono gli stessi,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
448 ad es. w (word, parola), $ (fine linea), etc.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
449
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
450 3. Muovi il cursore alla prima linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
451
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
452 4. Posiziona il cursore al primo errore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
453
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
454 5. Batti c$ e inserisci resto della linea utilizzando come modello la
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
455 linea seguente, e quando hai finito premi <ESC>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
456
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
457 ---> La fine di questa linea deve essere aiutata a divenire come la seguente.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
458 ---> La fine di questa linea deve essere corretta usando il comando c$ .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
459
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
460 NOTA: Puoi usare il tasto Backspace se devi correggere errori di battitura.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
461 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
462 Lezione 3 SOMMARIO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
463
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
464
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
465 1. Per reinserire del testo appena cancellato, batti p . Questo
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
466 inserisce [pone] il testo cancellato DOPO il cursore (se era stata tolta
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
467 una linea intera, questa verrà messa nella linea SOTTO il cursore).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
468
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
469 2. Per rimpiazzare il carattere sotto il cursore, batti r e poi il
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
470 carattere che vuoi sostituire.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
471
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
472 3. L'operatore change ti permette di cambiare dal cursore fino a dove
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
473 arriva il movimento. Ad es. Batti ce per cambiare dal cursore
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
474 fino alla fine della parola, c$ per cambiare fino a fine linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
475
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
476 4. Il formato di change è:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
477
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
478 c [numero] movimento
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
479
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
480 Ora vai alla prossima Lezione.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
481
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
482
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
483
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
484 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
485 Lezione 4.1: POSIZIONAMENTO E SITUAZIONE FILE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
486
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
487 ** Batti CTRL-G per vedere a che punto sei nel file e la situazione **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
488 ** del file. Batti G per raggiungere una linea nel file. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
489
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
490 NOTA: Leggi l'intera Lezione prima di eseguire un qualsiasi passo!!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
491
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
492 1. Tieni premuto il tasto CTRL e batti g . Ossia batti CTRL-G.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
493 Un messaggio apparirà in fondo alla pagina con il NOME FILE e la
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
494 posizione nel file. Ricordati il numero della linea per il Passo 3.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
495
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
496 NOTA: La posizione del cursore si vede nell'angolo in basso a destra dello
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
497 schermo, se è impostata l'opzione 'ruler' (righello, vedi :help ruler).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
498
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
499 2. Premi G [G Maiuscolo] per posizionarti in fondo al file.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
500 Batti gg per posizionarti in cima al file.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
501
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
502 3. Batti il numero della linea in cui ti trovavi e poi G . Questo ti
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
503 riporterà fino alla linea in cui ti trovavi quando avevi battuto CTRL-g.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
504
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
505 4. Se ti senti sicuro nel farlo, esegui i passi da 1 a 3.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
506
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
507 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
508 Lezione 4.2: IL COMANDO SEARCH [RICERCA]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
509
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
510 ** Batti / seguito da una frase per ricercare quella frase. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
511
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
512 1. in Modalità Normale batti il carattere / . Nota che la "/" e il cursore
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
513 sono visibili in fondo dello schermo come quando si usa il comando : .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
514
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
515 2. Adesso batti 'errroore' <INVIO>. Questa è la parola che vuoi ricercare.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
516
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
517 3. Per ricercare ancora la stessa frase, batti soltanto n .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
518 Per ricercare la stessa frase in direzione opposta, batti N .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
519
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
520 4. Per ricercare una frase nella direzione opposta, usa ? al posto di / .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
521
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
522 5. Per tornare dove eri prima nel file premi CTRL-O (tieni il tasto CTRL
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
523 schiacciato mentre premi la lettera o). Ripeti CTRL-O per andare ancora
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
524 indietro. Puoi usare CTRL-I per tornare in avanti.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
525
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5487
diff changeset
526 ---> "errroore" non è il modo giusto di digitare errore; errroore è un errore.
1629
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
527 NOTA: Quando la ricerca arriva a fine file, ricomincia dall'inizio del file,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
528 a meno che l'opzione 'wrapscan' sia stata disattivata.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
529
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
530 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
531 Lezione 4.3: RICERCA DI PARENTESI CORRISPONDENTI
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
532
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
533
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
534 ** Batti % per trovare una ),], o } corrispondente. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
535
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
536 1. Posiziona il cursore su una (, [, o { nella linea sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
537
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
538 2. Adesso batti il carattere % .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
539
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
540 3. Il cursore si sposterà sulla parentesi corrispondente.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
541
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
542 4. Batti % per muovere il cursore all'altra parentesi corrispondente.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
543
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
544 ---> Questa ( è una linea di test con (, [ ] e { } al suo interno. ))
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
545
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
546
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
547 NOTA: Questo è molto utile nel "debug" di un programma con parentesi errate!
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
548
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
549
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
550
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
551
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
552
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
553 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
554 Lezione 4.4: L'OPERATORE SOSTITUZIONE (SUBSTITUTE)
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
555
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
556 ** Batti :s/vecchio/nuovo/g per sostituire 'nuovo' a 'vecchio'. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
557
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
558 1. Muovi il cursore fino alla linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
559
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
560 2. Batti :s/lla/la <INVIO> . Nota che questo comando cambia solo
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
561 LA PRIMA occorrenza di "lla" sulla linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
562
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
563 3. Adesso batti :s/lla/la/g . Aggiungendo la flag g si chiede di
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
564 sostituire "globalmente" sulla linea, ossia tutte le occorrenze
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
565 di "lla" sulla linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
566
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
567 ---> lla stagione migliore per lla fioritura è lla primavera.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
568
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
569 4. Per cambiare ogni ricorrenza di una stringa di caratteri tra due linee,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
570 batti :#,#s/vecchio/nuovo/g dove #,# sono i numeri che delimitano
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
571 il gruppo di linee in cui si vuole sostituire.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
572 Batti :%s/vecchio/nuovo/g per cambiare ogni occorrenza nell'intero file.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
573 Batti :%s/vecchio/nuovo/gc per trovare ogni occorrenza nell'intero file
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
574 ricevendo per ognuna una richiesta se
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
575 effettuare o meno la sostituzione.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
576 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
577 Lezione 4 SOMMARIO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
578
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
579
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
580 1. CTRL-G visualizza a che punto sei nel file e la situazione del file.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
581 G [G Maiuscolo] ti porta all'ultima linea del file.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
582 numero G ti porta alla linea con quel numero.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
583 gg ti porta alla prima linea del file.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
584
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
585 2. Battendo / seguito da una frase ricerca IN AVANTI quella frase.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
586 Battendo ? seguito da una frase ricerca ALL'INDIETRO quella frase.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
587 DOPO una ricerca batti n per trovare la prossima occorrenza nella
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
588 stessa direzione, oppure N per cercare in direzione opposta.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
589 CTRL-O ti porta alla posizione precedente, CTRL-I a quella più nuova.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
590
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
591 3. Battendo % mentre il cursore si trova su (,),[,],{, oppure }
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
592 ti posizioni sulla corrispondente parentesi.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
593
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
594 4. Per sostituire "nuovo" al primo "vecchio" in 1 linea batti :s/vecchio/nuovo
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
595 Per sostituire "nuovo" ad ogni "vecchio" in 1 linea batti :s/vecchio/nuovo/g
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
596 Per sostituire frasi tra 2 numeri di linea [#] batti :#,#s/vecchio/nuovo/g
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
597 Per sostituire tutte le occorrenze nel file batti :%s/vecchio/nuovo/g
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
598 Per chiedere conferma ogni volta aggiungi 'c' :%s/vecchio/nuovo/gc
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
599 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
600 Lezione 5.1: COME ESEGUIRE UN COMANDO ESTERNO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
601
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
602
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
603 ** Batti :! seguito da un comando esterno per eseguire quel comando. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
604
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
605 1. Batti il comando : per posizionare il cursore in fondo allo schermo.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
606 Ciò ti permette di immettere un comando dalla linea comandi.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
607
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
608 2. Adesso batti il carattere ! (punto esclamativo). Ciò ti permette di
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
609 eseguire qualsiasi comando esterno si possa eseguire nella "shell".
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
610
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
611 3. Ad esempio batti ls dopo il ! e poi premi <INVIO>. Questo
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
612 visualizza una lista della tua directory, proprio come se fossi in una
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
613 "shell". Usa :!dir se ls non funziona. [Unix: ls MS-DOS: dir]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
614
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
615 NOTA: E' possibile in questo modo eseguire un comando a piacere, specificando
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
616 anche dei parametri per i comandi stessi.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
617
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
618 NOTA: Tutti i comandi : devono essere terminati premendo <INVIO>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
619 Da qui in avanti non lo ripeteremo ogni volta.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
620
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
621
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
622 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
623 Lezione 5.2: ANCORA SULLA SCRITTURA DEI FILE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
624
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
625
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
626 ** Per salvare le modifiche apportate a un testo batti :w NOMEFILE. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
627
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
628 1. Batti :!dir or :!ls per procurarti una lista della tua directory.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
629 Già sai che devi premere <INVIO> dopo aver scritto il comando.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
630
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
631 2. Scegli un NOMEFILE che ancora non esista, ad es. TEST .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
632
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
633 3. Adesso batti: :w TEST (dove TEST è il NOMEFILE che hai scelto).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
634
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
635 4. Questo salva l'intero file ("tutor.it") con il nome di TEST.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
636 Per verifica batti ancora :!dir o :!ls per listare la tua directory.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
637
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
638 NOTA: Se esci da Vim e riesegui Vim battendo vim TEST , il file aperto
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
639 sarà una copia esatta di "tutor.it" al momento del salvataggio.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
640
5487
0c37f66b4f3b Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
641 5. Ora cancella il file battendo (MS-DOS): :!del TEST
1629
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
642 o (Unix): :!rm TEST
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
643
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
644
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
645 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
646 Lezione 5.3: SELEZIONARE IL TESTO DA SCRIVERE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
647
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
648 ** Per salvare una porzione di file, batti v movimento :w NOMEFILE **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
649
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
650 1. Muovi il cursore su questa linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
651
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
652 2. Premi v e muovi il cursore fino alla linea numerata 5., qui sotto.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
653 Nota che il testo viene evidenziato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
654
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
655 3. Batti il carattere : . In fondo allo schermo apparirà :'<,'> .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
656
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
657 4. Batti w TEST , dove TEST è il nome di un file non ancora esistente.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
658 Verifica che si veda :'<,'>w TEST prima di dare <INVIO>.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
659
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
660 5. Vim scriverà nel file TEST le linee che hai selezionato. Usa :!dir
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
661 o :!ls per controllare che esiste. Non cancellarlo ora! Ti servirà
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
662 nella prossima lezione.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
663
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
664 NOTA: Battere v inizia una selezione visuale. Puoi muovere il cursore
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
665 come vuoi, e rendere la selezione più piccola o più grande. Poi
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
666 puoi usare un operatore per agire sul testo selezionato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
667 Ad es., d cancella il testo.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
668 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
669 Lezione 5.4: INSERIRE E RIUNIRE FILE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
670
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
671
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
672 ** Per inserire il contenuto di un file, batti :r NOMEFILE **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
673
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
674 1. Posiziona il cursore appena sopra questa riga.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
675
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
676 NOTA: Dopo aver eseguito il Passo 2 vedrai il testo della Lezione 5.3.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
677 Quindi spostati IN GIU' per tornare ancora a questa Lezione.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
678
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
679 2. Ora inserisci il tuo file TEST con il comando :r TEST dove TEST è
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
680 il nome che hai usato per creare il file.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
681 Il file richiesto è inserito sotto la linea in cui si trova il cursore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
682
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
683 3. Per verificare che un file è stato inserito, torna indietro col cursore
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
684 e nota che ci sono ora 2 copie della Lezione 5.3, quella originale e
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
685 quella che viene dal file.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
686
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
687 NOTA: Puoi anche leggere l'output prodotto da un comando esterno. Ad es.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
688 :r !ls legge l'output del comando ls e lo inserisce sotto la linea
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
689 in cui si trova il cursore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
690
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
691 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
692 Lezione 5 SOMMARIO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
693
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
694
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
695 1. :!comando esegue un comando esterno.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
696
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
697 Alcuni esempi utili sono [in MSDOS]:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
698 :!dir - visualizza lista directory
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
699 :!del NOMEFILE - cancella file NOMEFILE.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
700
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
701 2. :w NOMEFILE scrive su disco il file che stai editando con nome NOMEFILE.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
702
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
703 3. v movimento :w NOMEFILE salva le linee selezionate in maniera
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
704 visuale nel file NOMEFILE.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
705
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
706 4. :r NOMEFILE legge il file NOMEFILE da disco e lo inserisce nel file
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
707 che stai modificando, dopo la linea in cui è posizionato il cursore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
708
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
709 5. :r !dir legge l'output del comando dir e lo inserisce dopo la
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
710 linea in cui è posizionato il cursore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
711
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
712
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
713
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
714 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
715 Lezione 6.1: IL COMANDO OPEN [APRIRE]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
716
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
717
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
718 ** Batti o per aprire una linea sotto il cursore **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
719 ** e passare in Modalità Inserimento. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
720
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
721 1. Muovi il cursore fino alla linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
722
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
723 2. Batti la lettera minuscola o per aprire una linea sotto il cursore e
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
724 passare in Modalità Inserimento.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
725
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
726 3. Poi inserisci del testo e premi <ESC> per uscire dalla
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
727 Modalità Inserimento.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
728
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
729 ---> Dopo battuto o il cursore è sulla linea aperta (in Modalità Inserimento).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
730
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
731 4. Per aprire una linea SOPRA il cursore, batti una O maiuscola, invece
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
732 che una o minuscola. Prova sulla linea qui sotto.
10895
c391bfbdb452 Updated runtime files.
Christian Brabandt <cb@256bit.org>
parents: 5487
diff changeset
733 ---> Apri una linea SOPRA questa battendo O mentre il cursore è su questa linea.
1629
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
734
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
735
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
736
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
737 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
738 Lezione 6.2: IL COMANDO APPEND [AGGIUNGERE]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
739
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
740 ** Batti a per inserire testo DOPO il cursore. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
741
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
742 1. Muovi il cursore all'inizio della linea qui sotto, indicata da --->.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
743
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
744 2. Batti e finché il cursore arriva alla fine di li .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
745
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
746 3. Batti una a (minuscola) per aggiungere testo DOPO il cursore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
747
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
748 4. Completa la parola come mostrato nella linea successiva. Premi <ESC>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
749 per uscire dalla Modalità Inserimento.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
750
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
751 5. Usa e per passare alla successiva parola incompleta e ripeti i passi
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
752 3 e 4.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
753
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
754 ---> Questa li ti permetterà di esercit ad aggiungere testo a una linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
755 ---> Questa linea ti permetterà di esercitarti ad aggiungere testo a una linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
756
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
757 NOTA: a, i ed A entrano sempre in Modalità Inserimento, la sola differenza
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
758 è dove verranno inseriti i caratteri.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
759
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
760 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
761 Lezione 6.3: UN ALTRO MODO DI RIMPIAZZARE [REPLACE]
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
762
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
763
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
764 ** Batti una R maiuscola per rimpiazzare più di un carattere. **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
765
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
766 1. Muovi il cursore alla prima linea qui sotto, indicata da --->. Muovi il
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
767 cursore all'inizio del primo xxx .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
768
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
769 2. Ora batti R e batti il numero che vedi nella linea seguente, in modo
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
770 che rimpiazzi l' xxx .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
771
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
772 3. Premi <ESC> per uscire dalla Modalità Replace. Nota che il resto della
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
773 linea resta invariato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
774
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
775 4. Ripeti i passi in modo da rimpiazzare l'altro xxx .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
776
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
777 ---> Aggiungendo 123 a xxx si ottiene xxx.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
778 ---> Aggiungendo 123 a 456 si ottiene 579.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
779
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
780 NOTA: La Modalità Replace è come la Modalità Inserimento, ma ogni carattere
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
781 che viene battuto ricopre un carattere esistente.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
782
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
783 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
784 Lezione 6.4: COPIA E INCOLLA DEL TESTO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
785
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
786
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
787 ** usa l'operatore y per copiare del testo e p per incollarlo **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
788
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
789 1. Vai alla linea indicata da ---> qui sotto, e metti il cursore dopo "a)".
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
790
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
791 2. Entra in Modalità Visuale con v e metti il cursore davanti a "primo".
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
792
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
793 3. Batti y per copiare [yank] il testo evidenziato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
794
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
795 4. Muovi il cursore alla fine della linea successiva: j$
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
796
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
797 5. Batti p per incollare [paste] il testo. Poi batti: a secondo <ESC> .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
798
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
799 6. Usa la Modalità Visuale per selezionare " elemento.", copialo con y ,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
800 Vai alla fine della linea successiva con j$ e incolla il testo con p .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
801
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
802 ---> a) questo è il primo elemento.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
803 b)
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
804
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
805 NOTA: Puoi usare y come operatore; yw copia una parola [word].
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
806 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
807 Lezione 6.5: SET [IMPOSTA] UN'OPZIONE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
808
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
809 ** Imposta un'opzione per ignorare maiuscole/minuscole **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
810 ** durante la ricerca/sostituzione **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
811
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
812 1. Ricerca 'nota' battendo: /nota <ENTER>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
813 Ripeti la ricerca più volte usando il tasto n
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
814
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
815 2. Imposta l'opzione 'ic' (Ignore Case, [Ignora maiuscolo/minuscolo])
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
816 battendo: :set ic
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
817
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
818 3. Ora ricerca ancora 'nota' premendo il tasto n
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
819 Troverai adesso anche Nota e NOTA .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
820
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
821 4. Imposta le opzioni 'hlsearch' e 'incsearch' :set hls is
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
822
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
823 5. Ora batti ancora il comando di ricerca, e guarda cosa succede: /nota
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
824
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
825 6. Per disabilitare il riconoscimento di maiuscole/minuscole batti: :set noic
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
826 NOTA: Per non evidenziare le occorrenze trovate batti: :nohlsearch
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
827 NOTA: Per ignorare maiuscole/minuscole solo per una ricerca, usa \c
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
828 nel comando di ricerca: /nota\c <INVIO>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
829 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
830 Lezione 6 SOMMARIO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
831
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
832 1. Batti o per aggiungere una linea SOTTO il cursore ed entrare in
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
833 Modalità Inserimento.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
834 Batti O per aggiungere una linea SOPRA il cursore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
835
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
836 2. Batti a per inserire testo DOPO il cursore.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
837 Batti A per inserire testo alla fine della linea.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
838
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
839 3. Il comando e sposta il cursore alla fine di una parola.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
840
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
841 4. L'operatore y copia del testo, p incolla del testo.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
842
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
843 5. Batti R per entrare in Modalità Replace, e ne esci premendo <ESC>.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
844
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
845 6. Batti ":set xxx" per impostare l'opzione "xxx". Alcun opzioni sono:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
846 'ic' 'ignorecase' ignorare maiuscole/minuscole nella ricerca
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
847 'is' 'incsearch' mostra occorrenze parziali durante una ricerca
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
848 'hls' 'hlsearch' evidenzia tutte le occorrenze di una ricerca
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
849 Puoi usare sia il nome completo di un'opzione che quello abbreviato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
850
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
851 7. Usa il prefisso "no" per annullare una opzione: :set noic
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
852 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
853 Lezione 7.1: OTTENERE AIUTO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
854
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
855 ** Usa il sistema di aiuto on-line **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
856
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
857 Vim ha un esauriente sistema di aiuto on-line. Per cominciare, prova una di
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
858 queste alternative:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
859 - premi il tasto <AIUTO> (se ce n'è uno)
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
860 - premi il tasto <F1> (se ce n'è uno)
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
861 - batti :help <INVIO> OPPURE :h <INVIO>
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
862
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
863 Leggi il testo nella finestra di aiuto per vedere come funziona l'aiuto.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
864 Batti CTRL-W CTRL-W per passare da una finestra all'altra.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
865 Batti :q <INVIO> per chiudere la finestra di aiuto.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
866
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
867 Puoi trovare aiuto su quasi tutto, dando un argomento al comando ":help"
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
868 Prova questi (non dimenticare di premere <INVIO>):
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
869
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
870 :help w
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
871 :help c_CTRL-D
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
872 :help insert-index
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
873 :help user-manual
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
874
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
875 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
876 Lezione 7.2: PREPARARE UNO SCRIPT INIZIALE
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
877
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
878 ** Attiva le opzioni Vim **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
879
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
880 Vim ha molte più opzioni di Vi, ma molte di esse sono predefinite inattive.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
881 Per cominciare a usare più opzioni, devi creare un file "vimrc".
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
882
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
883 1. Comincia a editare il file "vimrc". Questo dipende dal tuo sistema:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
884 :e ~/.vimrc per Unix
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
885 :e $VIM/_vimrc per MS-Windows
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
886
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
887 2. Ora leggi i contenuti del file "vimrc" distribuito come esempio:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
888
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
889 :r $VIMRUNTIME/vimrc_example.vim
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
890
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
891 3. Scrivi il file con:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
892 :w
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
893
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
894 La prossima volta che apri Vim, sarà abilitata la colorazione sintattica.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
895 Puoi aggiungere a questo file "vimrc" tutte le tue impostazioni preferite.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
896 Per maggiori informazioni batti: :help vimrc-intro
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
897
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
898 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
899 Lezione 7.3: COMPLETAMENTO
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
900
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
901
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
902 ** Completamento linea comandi con CTRL-D e <TAB> **
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
903
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
904 1. Imposta Vim in modalità compatibile: :set nocp
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
905
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
906 2. Guarda i file esistenti nella directory: :!ls o :!dir
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
907
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
908 3. Batti l'inizio di un comando: :e
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
909
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
910 4. Premi CTRL-D e Vim ti mostra una lista di comandi che iniziano per "e".
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
911
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
912 5. Premi <TAB> e Vim completa per te il nome comando come ":edit".
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
913
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
914 6. Ora batti uno spazio e l'inizio del nome di un file esistente: :edit FIL
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
915
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
916 7. Premi <TAB>. Vim completerà il nome del file (se è il solo possibile).
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
917
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
918 NOTA: Il completamento è disponibile per molti comandi. Prova a battere
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
919 CTRL-D e <TAB>. Particolarmente utile per :help .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
920
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
921 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
922 Lezione 7 Sommario
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
923
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
924
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
925 1. Batti :help o premi <F1> o <Help> per aprire una finestra di aiuto.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
926
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
927 2. Batti :help comando per avere aiuto su comando .
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
928
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
929 3. Batti CTRL-W CTRL-W per saltare alla prossima finestra.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
930
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
931 4. Batti :q per chiudere la finestra di aiuto.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
932
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
933 5. Crea uno script iniziale vimrc contenente le tue impostazioni preferite.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
934
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
935 6. Mentre batti un comando : , premi CTRL-D per vedere i possibili
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
936 completamenti. Premi <TAB> per usare il completamento desiderato.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
937
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
938
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
939
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
940
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
941
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
942
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
943
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
944 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
945 Qui finisce la Guida a Vim. Il suo intento è di fornire una breve panoramica
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
946 dell'Editor Vim, che ti consenta di usare l'Editor abbastanza facilmente.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
947 Questa guida è largamente incompleta poiché Vim ha moltissimi altri comandi.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
948 Puoi anche leggere il manuale utente (anche in italiano): ":help user-manual".
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
949
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
950 Per ulteriore lettura e studio, raccomandiamo:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
951 Vim - Vi Improved - di Steve Oualline Editore: New Riders
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
952 Il primo libro completamente dedicato a Vim. Utile specie per principianti.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
953 Contiene molti esempi e figure.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
954 Vedi http://iccf-holland.org/click5.html
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
955
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
956 Quest'altro libro è più su Vi che su Vim, ma è pure consigliato:
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
957 Learning the Vi Editor - di Linda Lamb e Arnold Robbins
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
958 Editore: O'Reilly & Associates Inc.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
959 E' un buon libro per imparare quasi tutto ciò che puoi voler fare con Vi.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
960 Ne esiste una traduzione italiana, basata su una vecchia edizione.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
961
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
962 Questa guida è stata scritta da Michael C. Pierce e Robert K. Ware,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
963 Colorado School of Mines, usando idee fornite da Charles Smith,
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
964 Colorado State University - E-mail: bware@mines.colorado.edu
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
965 Modificato per Vim da Bram Moolenaar.
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
966 Segnalare refusi ad Antonio Colombo - E-mail: azc100@gmail.com
fc6d6ab0b230 updated for version 7.2a
vimboss
parents:
diff changeset
967 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~