annotate runtime/tutor/tutor.ca.utf-8 @ 6426:f673842874b6 v7.4.543

updated for version 7.4.543 Problem: Since patch 7.4.232 "1,3s/\n//" joins two lines instead of three. (Eliseo Mart?nez) Issue 287 Solution: Correct the line count. (Christian Brabandt) Also set the last used search pattern.
author Bram Moolenaar <bram@vim.org>
date Sat, 13 Dec 2014 03:17:11 +0100
parents 18ee39301b82
children 723487cd7876
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1 ===============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
2 = B e n v i n g u t s a l t u t o r d e l V I M - Versió 1.5 =
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
3 ===============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
4
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
5 El Vim és un editor molt potent que té moltes ordres, masses com per
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
6 explicar-les totes un tutor com aquest. Aquest tutor està dissenyat
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
7 per descriure les ordres bàsiques que us permetin fer servir el Vim com
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
8 a editor de propòsit general.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
9
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
10 El temps aproximat de seguir el tutor complet és d'uns 25 o 30 minuts
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
11 depenent de quant temps dediqueu a experimentar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
12
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
13 Feu una còpia d'aquest fitxer per practicar-hi (si heu començat amb el
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
14 programa vimtutor això que esteu llegint ja és una còpia).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
15
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
16 És important recordar que aquest tutor està pensat per ensenyar
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
17 practicant. És a dir, que haureu d'executar les ordres si les voleu
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
18 aprendre. Si només llegiu el text el més probable és que les oblideu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
19
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
20 Ara assegureu-vos que la tecla de bloqueig de majúscules no està
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
21 activada i premeu la tecla j per moure el cursor avall, fins que
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
22 la lliçó 1.1 ocupi completament la pantalla.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
23 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
24 Lliçó 1.1: MOURE EL CURSOR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
25
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
26
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
27 ** Per moure el cursor premeu les tecles h,j,k,l tal com està indicat. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
28 ^
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
29 k Pista: La h és a l'esquerra i mou el cursor cap a l'esquerra.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
30 < h l > La l és a la dreta i mou el cursor cap a la dreta.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
31 j La j sembla una fletxa cap avall.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
32 v
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
33 1. Moveu el cursor per la pantalla fins que us sentiu confortables.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
34
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
35 2. Mantingueu premuda la tecla avall (j) una estona.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
36 ---> Ara sabeu com moure-us fins a la pròxima lliçó.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
37
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
38 3. Usant la tecla avall, aneu a la lliçó 1.2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
39
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
40 Nota: Si no esteu segurs de la tecla que heu premut, premeu <ESC> per tornar
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
41 al mode Normal. Llavors torneu a teclejar l'ordre que volíeu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
42
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
43 Nota: Les tecles de moviment del cursor (fletxes) també funcionen. Però usant
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
44 hjkl anireu més ràpid, quan us hi hàgiu acostumant.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
45
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
46 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
47 Lliçó 1.2: ENTRAR I SORTIR DEL VIM
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
48
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
49
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
50 !! NOTA: Abans de seguir els passos següents llegiu *tota* la lliçó!!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
51
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
52 1. Premeu <ESC> (per estar segurs que esteu en el mode Normal).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
53
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
54 2. Teclegeu: :q! <ENTRAR>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
55
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
56 ---> Amb això sortireu de l'editor SENSE desar els canvis que hàgiu pogut
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
57 fer. Si voleu desar els canvis teclegeu:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
58 :wq <ENTRAR>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
59
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
60 3. Quan vegeu l'introductor de la shell escriviu l'ordre amb la qual heu
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
61 arribat a aquest tutor. Podria ser: vimtutor <ENTRAR>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
62 O bé: vim tutor <ENTRAR>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
63
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
64 ---> 'vim' és l'editor vim, i 'tutor' és el fitxer que voleu editar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
65
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
66 4. Si heu memoritzat les ordres, feu els passos anteriors, de l'1 al 3,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
67 per sortir i tornar a entrar a l'editor. Llavors moveu el cursor avall
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
68 fins la lliçó 1.3.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
69 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
70 Lliçó 1.3: EDITAR TEXT - ESBORRAR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
71
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
72
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
73 ** En mode Normal premeu x per esborrar el caràcter de sota el cursor. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
74
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
75 1. Moveu el cursor fins la línia que hi ha més avall marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
76
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
77 2. Poseu el cursor a sobre el caràcter que cal esborrar, per corregir els
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
78 errors.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
79
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
80 3. Premeu la tecla x per esborrar el caràcter.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
81
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
82 4. Repetiu els passos 2 i 3 fins que la frase sigui correcta.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
83
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
84 ---> Unna vaaca vva salttar sobbree la llluna.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
85
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
86 5. Ara que la línia és correcta, aneu a la lliçó 1.4.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
87
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
88 NOTA: Mentre aneu fent no tracteu de memoritzar, practiqueu i prou.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
89
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
90
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
91
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
92 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
93 Lliçó 1.4: EDITAR TEXT - INSERIR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
94
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
95
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
96 ** En mode Normal premeu i per inserir text. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
97
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
98 1. Moveu el cursor avall fins la primera línia marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
99
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
100 2. Per fer la primera línia igual que la segona poseu el cursor sobre el
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
101 primer caràcter POSTERIOR al text que s'ha d'inserir.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
102
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
103 3. Premeu la tecla i i escriviu el text que falta.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
104
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
105 4. Quan hàgiu acabat premeu <ESC> per tornar al mode Normal. Repetiu
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
106 els passos 2, 3 i 4 per corregir la frase.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
107
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
108 ---> Falten carctrs en aquesta .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
109 ---> Falten alguns caràcters en aquesta línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
110
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
111 5. Quan us trobeu còmodes inserint text aneu al sumari de baix.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
112
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
113
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
114
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
115 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
116 LLIÇÓ 1 SUMARI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
117
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
118
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
119 1. El cursor es mou amb les fletxes o bé amb les tecles hjkl.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
120 h (esquerra) j (avall) k (amunt) l (dreta)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
121
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
122 2. Per entrar al Vim (des de la shell) escriviu: vim FITXER <ENTRAR>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
123
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
124 3. Per sortir teclegeu: <ESC> :q! <ENTRAR> per descartar els canvis.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
125 O BÉ teclegeu: <ESC> :wq <ENTRAR> per desar els canvis.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
126
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
127 4. Per esborrar el caràcter de sota el cursor en el mode Normal premeu: x
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
128
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
129 5. Per inserir text on hi ha el cursor, en mode Normal, premeu:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
130 i escriviu el text <ESC>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
131
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
132 NOTA: La tecla <ESC> us portarà al mode Normal o cancel·larà una ordre
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
133 que estigui a mitges.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
134
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
135 Ara continueu amb la lliçó 2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
136
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
137
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
138 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
139 Lliçó 2.1: ORDRES PER ESBORRAR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
140
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
141
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
142 ** Teclegeu dw per esborrar fins al final d'una paraula. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
143
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
144 1. Premeu <ESC> per estar segurs que esteu en mode normal.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
145
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
146 2. Moveu el cursor avall fins la línia marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
147
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
148 3. Moveu el cursor fins el principi de la paraula que s'ha d'esborrar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
149
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
150 4. Teclegeu dw per fer desaparèixer la paraula.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
151
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
152 NOTA: Les lletres dw apareixeran a la línia de baix de la pantalla mentre
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
153 les aneu escrivint. Si us equivoqueu premeu <ESC> i torneu a començar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
154
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
155 ---> Hi han algunes paraules divertit que no pertanyen paper a aquesta frase.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
156
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
157 5. Repetiu el passos 3 i 4 fins que la frase sigui correcta i continueu a
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
158 la lliçó 2.2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
159
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
160
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
161 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
162 Lliçó 2.2: MÉS ORDRES PER ESBORRAR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
163
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
164
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
165 ** Escriviu d$ per esborrar fins al final de la línia. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
166
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
167 1. Premeu <ESC> per estar segurs que esteu en el mode Normal.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
168
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
169 2. Moveu el cursor avall fins a la línia marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
170
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
171 3. Moveu el cursor fins el final de la línia correcta
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
172 (DESPRÉS del primer . ).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
173
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
174 4. Teclegeu d$ per esborrar fins al final de la línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
175
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
176 ---> Algú ha escrit el final d'aquesta línia dos cops. línia dos cops.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
177
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
178 5. Aneu a la lliçó 2.3 per entendre què està passant.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
179
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
180
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
181
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
182
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
183
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
184 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
185 Lliçó 2.3: SOBRE ORDRES I OBJECTES
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
186
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
187
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
188 El format de l'ordre d'esborrar d és el següent:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
189
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
190 [nombre] d objecte O BÉ d [nombre] objecte
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
191 On:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
192 nombre - és el nombre de cops que s'ha d'executar (opcional, omissió=1).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
193 d - és l'ordre per esborrar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
194 objecte - és la cosa amb la qual operar (llista a baix).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
195
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
196 Una petita llista d'objectes:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
197 w - des del cursor fins al final de la paraula, incloent-hi l'espai.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
198 e - des del cursor fins al final de la paraula, SENSE incloure l'espai.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
199 $ - des del cursor fins al final de la línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
200
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
201 NOTA: Per als aventurers: si teclegeu només l'objecte, en el mode Normal,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
202 sense cap ordre, el cursor es mourà tal com està especificat a la
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
203 llista d'objectes.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
204
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
205
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
206
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
207 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
208 Lliçó 2.4: UNA EXCEPCIÓ A 'ORDRE-OBJECTE'
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
209
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
210
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
211 ** Teclegeu dd esborrar tota la línia. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
212
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
213 Com que molt sovint s'han d'eliminar línies senceres els dissenyadors del
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
214 Vi van creure que seria més fàcil teclejar dd per esborrar tota la línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
215
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
216 1. Moveu el cursor a la segona línia de la frase de baix.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
217 2. Teclegeu dd per esborrar la línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
218 3. Ara aneu a la quarta línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
219 4. Teclegeu 2dd per esborrar dues línies (recordeu nombre-ordre-objecte).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
220
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
221 1) Les roses són vermelles,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
222 2) El fang és divertit,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
223 3) Les violetes són blaves,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
224 4) Tinc un cotxe,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
225 5) Els rellotges diuen l'hora,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
226 6) El sucre és dolç,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
227 7) Igual que tu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
228
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
229
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
230 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
231 Lliçó 2.5: L'ORDRE DESFER
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
232
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
233
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
234 ** Premeu u per desfer els últims canvis, U per arreglar tota la línia. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
235
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
236 1. Moveu el cursor sobre el primer error de línia de baix marcada amb --->
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
237 2. Premeu x per esborrar el caràcter no desitjat.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
238 3. Ara premeu u per desfer l'última ordre executada.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
239 4. Aquest cop corregiu tots els errors de la línia amb l'ordre x.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
240 5. Ara premeu U per restablir la línia al seu estat original.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
241 6. Ara premeu u uns quants cops per desfer U i les ordres anteriors.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
242 7. Ara premeu CONTROL-R (les dues tecles al mateix temps) uns quants cops
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
243 per refer les ordres.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
244
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
245 ---> Correegiu els errors d'aqquesta línia i dessfeu-los aamb desfer.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
246
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
247 8. Aquestes ordres són molt útils. Ara aneu al sumari de la lliçó 2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
248
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
249
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
250
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
251
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
252 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
253 LLIÇÓ 2 SUMARI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
254
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
255
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
256 1. Per esborrar del cursor al final de la paraula teclegeu: dw
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
257
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
258 2. Per esborrar del cursor al final de la línia teclegeu: d$
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
259
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
260 3. Per esborrar una línia sencera teclegeu: dd
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
261
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
262 4. El format de qualsevol ordre del mode Normal és:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
263
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
264 [nombre] ordre objecte O BÉ ordre [nombre] objecte
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
265 on:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
266 nombre - és quants cops repetir l'ordre
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
267 ordre - és què fer, com ara d per esborrar
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
268 objecte - és amb què s'ha d'actuar, com ara w (paraula),
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
269 $ (fins a final de línia), etc.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
270
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
271 5. Per desfer les accions anteriors premeu: u
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
272 Per desfer tots el canvis en una línia premeu: U
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
273 Per desfer l'ordre desfer premeu: CTRL-R
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
274
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
275 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
276 Lliçó 3.1: L'ORDRE 'POSAR'
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
277
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
278
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
279 ** Premeu p per posar l'última cosa que heu esborrat després del cursor. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
280
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
281
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
282 1. Moveu el cursor a la primera línia de llista de baix.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
283
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
284 2. Teclegeu dd per esborrar la línia i desar-la a la memòria.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
285
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
286 3. Moveu el cursor a la línia ANTERIOR on hauria d'anar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
287
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
288 4. En mode Normal, premeu p per inserir la línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
289
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
290 5. Repetiu els passos 2, 3 i 4 per ordenar les línies correctament.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
291
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
292 d) Pots aprendre tu?
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
293 b) Les violetes són blaves,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
294 c) L'intel·ligència s'aprèn,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
295 a) Les roses són vermelles,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
296
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
297
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
298 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
299 Lliçó 3.2: L'ORDRE SUBSTITUIR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
300
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
301
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
302 ** Premeu r i un caràcter per substituir el caràcter de sota el cursor. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
303
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
304 1. Moveu el cursor a la primera línia de sota marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
305
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
306 2. Moveu el cursor a sobre del primer caràcter equivocat.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
307
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
308 3. Premeu r i tot seguit el caràcter correcte per corregir l'error.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
309
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
310 4. Repetiu els passos 2 i 3 fins que la línia sigui correcta.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
311
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
312 ---> Quen van escroure aquerta línia, algh va apretar tikles equivocades!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
313 ---> Quan van escriure aquesta línia, algú va apretar tecles equivocades!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
314
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
315 5. Ara continueu a la lliçó 3.2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
316
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
317 NOTA: Recordeu que heu de practicar, no memoritzar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
318
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
319
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
320
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
321 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
322 Lliçó 3.3: L'ORDRE CANVIAR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
323
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
324
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
325 ** Per canviar una part o tota la paraula, escriviu cw . **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
326
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
327 1. Moveu el cursor a la primera línia de sota marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
328
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
329 2. Poseu el cursor sobre la u de 'lughc'.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
330
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
331 3. Teclegeu cw i corregiu la paraula (en aquest cas escriviu 'ínia'.)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
332
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
333 4. Premeu <ESC> i aneu al següent error.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
334
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
335 5. Repetiu els passos 3 i 4 fins que les dues frases siguin iguals.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
336
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
337 ---> Aquesta lughc té algunes paradskl que s'han de cdddf.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
338 ---> Aquesta línia té algunes paraules que s'han de canviar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
339
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
340 Noteu que cw no només canvia la paraula, també us posa en mode d'inserció.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
341
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
342
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
343
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
344 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
345 Lliçó 3.4: MÉS CANVIS AMB c
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
346
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
347
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
348 ** L'ordre canviar s'usa amb els mateixos objectes que l'ordre esborrar. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
349
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
350 1. L'ordre canviar funciona igual que la d'esborrar. El format és:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
351
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
352 [nombre] c objecte O BÉ c [nombre] objecte
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
353
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
354 2. Els objectes són els mateixos, com w (paraula), $ (final de línia), etc.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
355
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
356 3. Moveu el cursor fins la primera línia marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
357
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
358 4. Avanceu fins al primer error.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
359
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
360 5. Premeu c$ per fer la línia igual que la segona i premeu <ESC>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
361
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
362 ---> El final d'aquesta línia necessita canvis per ser igual que la segona.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
363 ---> El final d'aquesta línia s'ha de corregir amb l'ordre c$.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
364
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
365
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
366
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
367 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
368 LLIÇÓ 3 SUMARI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
369
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
370
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
371 1. Per tornar a posar el text que s'ha esborrat, premeu p . Això posa el
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
372 text esborrat DESPRÉS del cursor (si heu esborrat una línia anirà a
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
373 parar a la línia SEGÜENT d'on hi ha el cursor).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
374
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
375 2. Per substituir el caràcter de sota el cursor, premeu r i tot seguit
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
376 el caràcter que ha de reemplaçar l'original.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
377
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
378 3. L'ordre canviar permet canviar l'objecte especificat des del cursor
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
379 fins el final de l'objecte. Per exemple, cw canvia el que hi ha des
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
380 del cursor fins al final de la paraula, i c$ fins al final de línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
381
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
382 4. El format de l'ordre canviar és:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
383
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
384 [nombre] c objecte O BÉ c [nombre] objecte
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
385
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
386 Ara aneu a la pròxima lliçó.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
387
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
388
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
389
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
390 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
391 Lliçó 4.1: SITUACIÓ I ESTAT DEL FITXER
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
392
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
393
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
394 ** Premeu CTRL-g per veure la situació dins del fitxer i el seu estat.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
395 Premeu SHIFT-G per anar a una línia determinada. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
396
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
397 Nota: No proveu res fins que hàgiu llegit TOTA la lliçó!!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
398
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
399 1. Mantingueu premuda la tecla Control i premeu g . A la part de baix de
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
400 la pàgina apareixerà un línia amb el nom del fitxer i la línia en la
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
401 qual us trobeu. Recordeu el número de la línia pel Pas 3.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
402
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
403 2. Premeu Shift-G per anar al final de tot del fitxer.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
404
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
405 3. Teclegeu el número de la línia on éreu i després premeu Shift-G. Això
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
406 us tornarà a la línia on éreu quan heu premut per primer cop Ctrl-g.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
407 (Quan teclegeu el número NO es veurà a la pantalla.)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
408
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
409 4. Ara executeu els passos de l'1 al 3.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
410
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
411
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
412
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
413 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
414 Lliçó 4.2: L'ORDRE CERCAR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
415
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
416
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
417 ** Premeu / seguit de la frase que vulgueu cercar. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
418
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
419 1. En el mode Normal premeu el caràcter / . Noteu que el cursor apareix
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
420 a la part de baix de la pantalla igual que amb l'ordre : .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
421
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
422 2. Ara escriviu 'errroor' <ENTRAR>. Aquesta és la paraula que voleu
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
423 cercar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
424
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
425 3. Per tornar a cercar la mateixa frase, premeu n .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
426 Per cercar la mateixa frase en direcció contraria, premeu Shift-N .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
427
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
428 4. Si voleu cercar una frase en direcció ascendent, useu l'ordre ? en
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
429 lloc de /.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
430
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
431 ---> "errroor" no és com s'escriu error; errroor és un error.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
432
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
433 Note: Quan la cerca arribi al final del fitxer continuarà a l'inici.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
434
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
435
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
436 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
437 Lliçó 4.3: CERCA DE PARÈNTESIS
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
438
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
439
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
440 ** Premeu % per cercar el ),], o } corresponent. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
441
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
442 1. Poseu el cursor en qualsevol (, [, o { de la línia marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
443
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
444 2. Ara premeu el caràcter % .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
445
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
446 3. El cursor hauria d'anar a la clau o parèntesis corresponent.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
447
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
448 4. Premeu % per tornar el cursor al primer parèntesi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
449
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
450 ---> Això ( és una línia amb caràcters (, [ ] i { } de prova. ))
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
451
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
452 Nota: Això és molt útil per trobar errors en programes informàtics!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
453
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
454
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
455
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
456
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
457
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
458
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
459 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
460 Lliçó 4.4: UNA MANERA DE CANVIAR ERRORS
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
461
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
462
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
463 ** Escriviu :s/vell/nou/g per substituir 'vell' per 'nou'. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
464
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
465 1. Moveu el cursor a la línia de sota marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
466
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
467 2. Escriviu :s/laa/la <ENTRAR> . Aquesta ordre només canvia la primera
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
468 coincidència que es trobi a la línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
469
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
470 3. Ara escriviu :s/laa/la/g per fer una substitució global. Això
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
471 canviarà totes les coincidències que es trobin a la línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
472
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
473 ---> laa millor època per veure laa flor és laa primavera.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
474
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
475 4. Per canviar totes les coincidències d'una cadena entre dues línies,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
476 escriviu :#,#s/vell/nou/g on #,# són els nombres de les línies.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
477 Escriviu :%s/vell/nou/g per substituir la cadena a tot el fitxer.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
478
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
479
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
480
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
481
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
482 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
483 LLIÇÓ 4 SUMARI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
484
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
485
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
486 1. Ctrl-g mostra la posició dins del fitxer i l'estat del mateix.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
487 Shift-G us porta al final del fitxer. Un número seguit de Shift-G
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
488 us porta a la línia corresponent.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
489
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
490 2. L'ordre / seguida d'una frase cerca la frase ENDAVANT.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
491 L'ordre ? seguida d'una frase cerca la frase ENDARRERE.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
492 Després d'una cerca premeu n per trobar la pròxima coincidència en
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
493 la mateixa direcció, o Shift-N per cercar en la direcció contrària.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
494
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
495 3. L'ordre % quan el cursor és a sobre un (,),[,],{, o } troba la
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
496 parella corresponent.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
497
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
498 4. Per substituir el primer 'vell' per 'nou' en una línia :s/vell/nou
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
499 Per substituir tots els 'vell' per 'nou' en una línia :s/vell/nou/g
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
500 Per substituir frases entre les línies # i # :#,#s/vell/nou/g
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
501 Per substituir totes les coincidències en el fitxer :%s/vell/nou/g
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
502 Per demanar confirmació cada cop afegiu 'c' :%s/vell/nou/gc
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
503
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
504
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
505 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
506 Lliçó 5.1: COM EXECUTAR UNA ORDRE EXTERNA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
507
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
508
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
509 ** Teclegeu :! seguit d'una ordre externa per executar-la. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
510
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
511 1. Premeu el familiar : per col·locar el cursor a la part de baix de
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
512 la pantalla. Això us permet entrar una ordre.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
513
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
514 2. Ara teclegeu el caràcter ! (signe d'exclamació). Això us permet
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
515 executar qualsevol ordre de la shell.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
516
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
517 3. Com a exemple escriviu ls i tot seguit premeu <ENTRAR>. Això us
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
518 mostrarà el contingut del directori, tal com si estiguéssiu a la
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
519 línia d'ordres. Feu servir :!dir si ls no funciona.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
520
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
521 Nota: D'aquesta manera es pot executar qualsevol ordre externa.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
522
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
523 Nota: Totes les ordres : s'han d'acabar amb la tecla <ENTRAR>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
524
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
525
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
526
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
527
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
528 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
529 Lliçó 5.2: MÉS SOBRE L'ESCRIPTURA DE FITXERS
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
530
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
531
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
532 ** Per desar els canvis fets, escriviu :w FITXER. ***
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
533
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
534 1. Escriviu :!dir o bé :!ls per obtenir un llistat del directori.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
535 Ja sabeu que heu de prémer <ENTRAR> després d'això.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
536
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
537 2. Trieu un nom de fitxer que no existeixi, com ara PROVA.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
538
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
539 3. Ara feu: :w PROVA (on PROVA és el nom que heu triat.)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
540
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
541 4. Això desa tot el fitxer amb el nom de PROVA. Per comprovar-ho
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
542 escriviu :!dir per veure el contingut del directori.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
543
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
544 Note: Si sortiu del Vim i entreu una altra vegada amb el fitxer PROVA, el
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
545 fitxer serà una còpia exacta del tutor que heu desat.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
546
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
547 5. Ara esborreu el fitxer teclejant (MS-DOS): :!del PROVA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
548 o bé (Unix): :!rm PROVA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
549
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
550
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
551 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
552 Lliçó 5.3: UNA ORDRE SELECTIVA PER DESAR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
553
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
554
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
555 ** Per desar una part del fitxer, escriviu :#,# w FITXER **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
556
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
557 1. Un altre cop, feu :!dir o :!ls per obtenir un llistat del directori
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
558 i trieu un nom de fitxer adequat com ara PROVA.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
559
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
560 2. Moveu el cursor a dalt de tot de la pàgina i premeu Ctrl-g per
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
561 saber el número de la línia. RECORDEU AQUEST NÚMERO!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
562
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
563 3. Ara aneu a baix de tot de la pàgina i torneu a prémer Ctrl-g.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
564 RECORDEU AQUEST NÚMERO TAMBÉ!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
565
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
566 4. Per desar NOMÉS una secció en un fitxer, escriviu :#,# w PROVA on
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
567 #,# són els dos números que heu recordat (dalt,baix) i PROVA el nom
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
568 del fitxer.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
569
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
570 5. Mireu que el fitxer nou hi sigui amb :!dir però no l'esborreu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
571
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
572
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
573
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
574 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
575 Lliçó 5.4: OBTENIR I AJUNTAR FITXERS
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
576
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
577
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
578 ** Per inserir el contingut d'un fitxer, feu :r FITXER **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
579
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
580 1. Assegureu-vos, amb l'ordre :!dir , que el fitxer PROVA encara hi és.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
581
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
582 2. Poseu el cursor a dalt de tot d'aquesta pàgina.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
583
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
584 NOTA: Després d'executar el Pas 3 veureu la lliçó 5.3. Aleshores moveu-vos
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
585 cap avall fins a aquesta lliçó un altre cop.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
586
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
587 3. Ara obtingueu el fitxer PROVA amb l'ordre :r PROVA on PROVA és el
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
588 nom del fitxer.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
589
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
590 NOTA: El fitxer que obtingueu es posa en el lloc on hi hagi el cursor.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
591
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
592 4. Per comprovar que s'ha obtingut el fitxer tireu enrere i mireu com
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
593 ara hi han dues còpies de la lliçó 5.3: l'original i la del fitxer.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
594
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
595
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
596
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
597 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
598 LLIÇÓ 5 SUMARI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
599
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
600
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
601 1. :!ordre executa una ordre externa.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
602
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
603 Alguns exemples útils són:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
604 (MS-DOS) (Unix)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
605 :!dir :!ls - mostra un llistat del directori
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
606 :!del FITXER :!rm FITXER - esborra el fitxer FITXER
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
607
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
608 2. :w FITXER escriu el fitxer editat al disc dur, amb el nom FITXER.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
609
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
610 3. :#,#w FITXER desa les línies de # a # en el fitxer FITXER.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
611
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
612 4. :r FITXER llegeix el fitxer FITXER del disc dur i l'insereix en el
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
613 fitxer editat a la posició on hi ha el cursor.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
614
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
615
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
616
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
617
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
618
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
619
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
620 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
621 Lliçó 6.1: L'ORDRE OBRIR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
622
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
623
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
624 ** Premeu o per obrir una línia sota el cursor i entrar en mode inserció. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
625
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
626 1. Moveu el cursor a la línia de sota marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
627
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
628 2. Premeu o (minúscula) per obrir una línia SOTA el cursor i situar-vos
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
629 en mode d'inserció.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
630
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
631 3. Ara copieu la línia marcada amb ---> i premeu <ESC> per tornar al mode
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
632 normal.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
633
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
634 ---> Després de prémer o el cursor es situa a la línia nova en mode inserció.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
635
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
636 4. Per obrir una línia SOBRE el cursor, premeu la O majúscula, en lloc
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
637 de la minúscula. Proveu-ho amb la línia de sota.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
638 Obriu una línia sobre aquesta amb Shift-O amb el cursor en aquesta línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
639
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
640
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
641
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
642
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
643 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
644 Lliçó 6.2: L'ORDRE AFEGIR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
645
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
646
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
647 ** Premeu a per afegir text DESPRÉS del cursor. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
648
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
649 1. Moveu el cursor al final de la primera línia de sota marcada
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
650 amb ---> prement $ en el mode Normal.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
651
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
652 2. Premeu la lletra a (minúscula) per afegir text DESPRÉS del caràcter
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
653 sota el cursor. (La A majúscula afegeix text al final de línia.)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
654
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
655 Nota: Així s'evita haver de prémer i , l'últim caràcter, el text a inserir,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
656 la tecla <ESC>, cursor a la dreta, i finalment x , només per afegir
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
657 text a final de línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
658
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
659 3. Ara completeu la primera línia. Tingueu en compte que aquesta ordre
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
660 és exactament igual que la d'inserir, excepte pel que fa al lloc on
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
661 s'insereix el text.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
662
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
663 ---> Aquesta línia us permetrà practicar
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
664 ---> Aquesta línia us permetrà practicar afegir text a final de línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
665
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
666 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
667 Lliçó 6.3: UNA ALTRA MANERA DE SUBSTITUIR
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
668
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
669
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
670 ** Teclegeu una R majúscula per substituir més d'un caràcter. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
671
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
672 1. Moveu el cursor a la línia de sota marcada amb --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
673
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
674 2. Poseu el cursor al principi de la primera paraula que es diferent
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
675 respecte a la segona línia marcada amb ---> (la paraula "l'última").
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
676
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
677 3. Ara premeu R i substituïu el que queda de text a la primera línia
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
678 escrivint sobre el text vell, per fer-la igual que la segona.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
679
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
680 ---> Per fer aquesta línia igual que l'última useu les tecles.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
681 ---> Per fer aquesta línia igual que la segona, premeu R i el text nou.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
682
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
683 4. Tingueu en compte que en prémer <ESC> per sortir, el text que no
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
684 s'hagi alterat es manté.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
685
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
686
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
687
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
688
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
689 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
690 Lliçó 6.4: ESTABLIR OPCIONS
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
691
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
692 ** Feu que les ordres cercar o substituir ignorin les diferències
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
693 entre majúscules i minúscules **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
694
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
695 1. Cerqueu la paraula 'ignorar' amb: /ignorar
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
696 Repetiu-ho uns quants cops amb la tecla n.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
697
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
698 2. Establiu l'opció 'ic' (Ignorar Capitals) escrivint:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
699 :set ic
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
700
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
701 3. Ara cerqueu 'ignorar' un altre cop amb la tecla n.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
702 Repetiu-ho uns quants cops més.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
703
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
704 4. Establiu les opcions 'hlsearch' i 'incsearch':
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
705 :set hls is
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
706
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
707 5. Ara torneu a executar una ordre de cerca, i mireu què passa:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
708 /ignorar
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
709
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
710 6. Per treure el ressalt dels resultats, feu:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
711 :nohlsearch
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
712 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
713 LLIÇÓ 6 SUMARI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
714
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
715
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
716 1. L'ordre o obre una línia SOTA la del cursor i mou el cursor a la nova
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
717 línia, en mode Inserció.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
718 La O majúscula obre la línia a SOBRE la que hi ha el cursor.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
719
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
720 2. Premeu una a per afegir text DESPRÉS del caràcter sota el cursor.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
721 La A majúscula afegeix automàticament el text a final de línia.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
722
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
723 3. L'ordre R majúscula us posa en mode substitució fins que premeu <ESC>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
724
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
725 4. Escriviu ":set xxx" per establir l'opció "xxx"
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
726
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
727
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
728
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
729
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
730
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
731
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
732
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
733
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
734
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
735 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
736 LLIÇÓ 7: ORDRES D'AJUDA
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
737
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
738
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
739 ** Utilitzeu el sistema intern d'ajuda **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
740
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
741 El Vim té un extens sistema d'ajuda. Per llegir una introducció proveu una
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
742 d'aquestes tres coses:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
743 - premeu la tecla <AJUDA> (si en teniu alguna)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
744 - premeu la tecla <F1> (si en teniu alguna)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
745 - escriviu :help <ENTRAR>
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
746
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
747 Teclegeu :q <ENTRAR> per tancar la finestra d'ajuda.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
748
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
749 Podeu trobar ajuda sobre pràcticament qualsevol tema donant un argument
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
750 a l'ordre ":help". Proveu això (no oblideu prémer <ENTRAR>):
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
751
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
752 :help w
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
753 :help c_<T
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
754 :help insert-index
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
755 :help user-manual
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
756
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
757
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
758 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
759 LLIÇÓ 8: CREAR UN SCRIPT D'INICI
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
760
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
761 ** Activar funcions automàticament **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
762
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
763 El Vim té moltes més funcions que el Vi, però moltes estan desactivades per
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
764 omissió. Per començar a utilitzar més funcions heu de crear un fitxer "vimrc".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
765
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
766 1. Comenceu a editar el fitxer "vimrc", depenent del sistema
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
767 :edit ~/.vimrc per Unix
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
768 :edit $VIM/_vimrc per MS-Windows
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
769
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
770 2. Ara llegiu el fitxer "vimrc" d'exemple:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
771
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
772 :read $VIMRUNTIME/vimrc_example.vim
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
773
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
774 3. Deseu el fitxer amb:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
775
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
776 :write
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
777
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
778 El pròxim cop que executeu el Vim usarà ressalt de sintaxi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
779 Podeu afegir els ajustos que vulgueu en aquest fitxer "vimrc".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
780
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
781 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
782
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
783 Aquí conclou el Tutor del Vim. Ha sigut un intent de fer-vos una breu
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
784 introducció a l'editor Vim, suficient com per què el pugueu començar a fer
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
785 servir. Està lluny de ser complet perquè el Vim té moltes més ordres.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
786 Llegiu el manual de l'usuari: ":help user-manual".
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
787
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
788 Per un estudi més profund us recomanem el següent llibre:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
789 Vim - Vi Improved - de Steve Oualline
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
790 Editorial: New Riders
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
791 És el primer llibre dedicat completament al Vim, especialment útil per a
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
792 usuaris novells. Té molts exemples i dibuixos.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
793 Vegeu http://iccf-holland.org/click5.html
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
794
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
795 Aquest altre és més vell i tracta més sobre el Vi que sobre el Vim:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
796 Learning the Vi Editor - de Linda Lamb
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
797 Editorial: O'Reilly & Associates Inc.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
798 És un bon llibre per saber qualsevol cosa que desitgeu sobre el Vi.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
799 La sisena edició també inclou informació sobre el Vim.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
800
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
801 Aquest tutorial ha estat escrit per Michael C. Pierce i Robert K. Ware,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
802 Colorado School of Mines amb la col·laboració de Charles Smith,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
803 Colorado State University. E-mail: bware@mines.colorado.edu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
804
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
805 Modificat pel Vim per Bram Moolenaar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
806
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
807 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~