annotate runtime/tutor/tutor.es.utf-8 @ 34273:f4ae2a159bde v9.1.0075

patch 9.1.0075: insert completion not correct when adding new leader Commit: https://github.com/vim/vim/commit/cbb46b439888e10f87baaca504eafd191723c44b Author: glepnir <glephunter@gmail.com> Date: Sat Feb 3 18:11:13 2024 +0100 patch 9.1.0075: insert completion not correct when adding new leader Problem: insert completion not correct when adding new leader Solution: Reset compl_curr_match to compl_shown_match (glepnir) closes: #13957 Co-authored-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Feb 2024 18:30:03 +0100
parents 3295247d97a5
children 993a2cf6d27c
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 ===============================================================================
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
2 = B i e n v e n i d o a l t u t o r d e V I M - Versión 1.7 =
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
3 ===============================================================================
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
4
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
5 Vim es un editor muy potente que dispone de muchos comandos, demasiados
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
6 para ser explicados en un tutor como éste. Este tutor está diseñado
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
7 para describir suficientes comandos para que usted sea capaz de
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
8 aprender fácilmente a usar Vim como un editor de propósito general.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
9
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
10 El tiempo necesario para completar el tutor es aproximadamente de 30
18639
cb3163d590a1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 15334
diff changeset
11 minutos, dependiendo de cuánto tiempo se dedique a la experimentación.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
12
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
13 Los comandos de estas lecciones modificarán el texto. Haga una copia de
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
14 este fichero para practicar (con «vimtutor» esto ya es una copia).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
15
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
16 Es importante recordar que este tutor está pensado para enseñar con
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
17 la práctica. Esto significa que es necesario ejecutar los comandos
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
18 para aprenderlos adecuadamente. Si únicamente lee el texto, ¡se le
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
19 olvidarán los comandos.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
20
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
21 Ahora, asegúrese de que la tecla de bloqueo de mayúsculas NO está
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
22 activada y pulse la tecla j lo suficiente para mover el cursor
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
23 de forma que la Lección 1.1 ocupe completamente la pantalla.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
24 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
25 Lección 1.1: MOVER EL CURSOR
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
26
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
27 ** Para mover el cursor, pulse las teclas h,j,k,l de la forma indicada. **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
28 ^
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
29 k Indicación: La tecla h está a la izquierda y lo mueve a la izquierda.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
30 < h l > La tecla l está a la derecha y lo mueve a la derecha.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
31 j La tecla j parece una flecha que apunta hacia abajo.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
32 v
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
33
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
34 1. Mueva el cursor por la pantalla hasta que se sienta cómodo con ello.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
35
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
36 2. Mantenga pulsada la tecla (j) hasta que se repita «automágicamente».
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
37 Ahora ya sabe como llegar a la lección siguiente.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
38
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
39 3. Utilizando la tecla abajo, vaya a la lección 1.2.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
40
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
41 NOTA: Si alguna vez no está seguro sobre algo que ha tecleado, pulse <ESC>
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
42 para situarse en modo Normal. Luego vuelva a teclear la orden que deseaba.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
43
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
44 NOTA: Las teclas de movimiento del cursor también funcionan. Pero usando
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
45 hjkl podrá moverse mucho más rápido una vez que se acostumbre a ello.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
46 ¡De verdad!
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
47
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
48 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
49 Lección 1.2: SALIR DE VIM
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
50
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
51 ¡¡ NOTA: Antes de ejecutar alguno de los siguientes pasos lea primero
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
52 la lección entera!!
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
53
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
54 1. Pulse la tecla <ESC> (para asegurarse de que está en modo Normal).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
55
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
56 2. Escriba: :q! <INTRO>
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
57 Esto provoca la salida del editor DESCARTANDO cualquier cambio que haya hecho.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
58
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
59 3. Regrese aquí ejecutando el comando que le trajo a este tutor.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
60 Éste puede haber sido: vimtutor <INTRO>
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
61
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
62 4. Si ha memorizado estos pasos y se siente con confianza, ejecute los
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
63 pasos 1 a 3 para salir y volver a entrar al editor.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
64
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
65 NOTA: :q! <INTRO> descarta cualquier cambio que haya realizado.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
66 En próximas lecciones aprenderá cómo guardar los cambios en un archivo.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
67
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
68 5. Mueva el cursor hasta la Lección 1.3.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
69
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
70
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
71 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
72 Lección 1.3: EDITAR TEXTO - BORRAR
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
73
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
74 ** Pulse x para eliminar el carácter bajo el cursor. **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
75
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
76 1. Mueva el cursor a la línea de abajo señalada con --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
77
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
78 2. Para corregir los errores, mueva el cursor hasta que esté sobre el
14668
34fd018452ed Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14347
diff changeset
79 carácter que va a ser borrado.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
80
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
81 3. Pulse la tecla x para eliminar el carácter no deseado.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
82
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
83 4. Repita los pasos 2 a 4 hasta que la frase sea la correcta.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
84
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
85 ---> La vvaca saltóó soobree laa luuuuna.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
86
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
87 5. Ahora que la línea esta correcta, continúe con la Lección 1.4.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
88
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
89 NOTA: A medida que vaya avanzando en este tutor no intente memorizar,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
90 aprenda practicando.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
91
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
92
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
93 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
94 Lección 1.4: EDITAR TEXTO - INSERTAR
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
95
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
96 ** Pulse i para insertar texto. **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
97
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
98 1. Mueva el cursor a la primera línea de abajo señalada con --->.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
99
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
100 2. Para hacer que la primera línea sea igual que la segunda, mueva el
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
101 cursor hasta que esté sobre el carácter ANTES del cual el texto va a ser
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
102 insertado.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
103
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
104 3. Pulse i y escriba los caracteres a añadir.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
105
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
106 4. A medida que sea corregido cada error pulse <ESC> para volver al modo
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
107 Normal. Repita los pasos 2 a 4 para corregir la frase.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
108
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
109 ---> Flta texto en esta .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
110 ---> Falta algo de texto en esta línea.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
111
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
112 5. Cuando se sienta cómodo insertando texto pase vaya a la lección 1.5.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
113
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
114
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
115 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
116 Lección 1.5: EDITAR TEXTO - AÑADIR
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
117
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
118
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
119 ** Pulse A para añadir texto. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
120
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
121 1. Mueva el cursor a la primera línea inferior marcada con --->.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
122 No importa sobre qué carácter está el cursor en esta línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
123
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
124 2. Pulse A y escriba el texto necesario.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
125
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
126 3. Cuando el texto haya sido añadido pulse <ESC> para volver al modo Normal.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
127
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
128 4. Mueva el cursor a la segunda línea marcada con ---> y repita los
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
129 pasos 2 y 3 para corregir esta frase.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
130
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
131 ---> Falta algún texto en es
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
132 Falta algún texto en esta línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
133 ---> También falta alg
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
134 También falta algún texto aquí.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
135
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
136 5. Cuando se sienta cómodo añadiendo texto pase a la lección 1.6.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
137
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
138 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
139 Lección 1.6: EDITAR UN ARCHIVO
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
140
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
141 ** Use :wq para guardar un archivo y salir **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
142
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
143 !! NOTA: Antes de ejecutar los siguientes pasos, lea la lección entera!!
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
144
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
145 1. Si tiene acceso a otra terminal, haga lo siguiente en ella.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
146 Si no es así, salga de este tutor como hizo en la lección 1.2: :q!
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
147
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
148 2. En el símbolo del sistema escriba este comando: vim archivo.txt <INTRO>
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
149 'vim' es el comando para arrancar el editor Vim, 'archivo.txt'
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
150 es el nombre del archivo que quiere editar
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
151 Utilice el nombre de un archivo que pueda cambiar.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
152
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
153 3. Inserte y elimine texto como ya aprendió en las lecciones anteriores.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
154
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
155 4. Guarde el archivo con los cambios y salga de Vim con: :wq <INTRO>
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
156
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
157 5. Si ha salido de vimtutor en el paso 1 reinicie vimtutor y baje hasta
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
158 el siguiente sumario.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
159
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
160 6. Después de leer los pasos anteriores y haberlos entendido: hágalos.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
161
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
162 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
163 RESUMEN DE LA LECCIÓN 1
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
164
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
165
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1624
diff changeset
166 1. El cursor se mueve utilizando las teclas de las flechas o las teclas hjkl.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
167 h (izquierda) j (abajo) k (arriba) l (derecha)
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
168
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
169 2. Para acceder a Vim desde el símbolo del sistema escriba:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
170 vim NOMBREARCHIVO <INTRO>
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
171
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
172 3. Para salir de Vim escriba: <ESC> :q! <INTRO> para eliminar todos
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
173 los cambios.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
174 O escriba: <ESC> :wq <INTRO> para guardar los cambios.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
175
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
176 4. Para borrar un carácter bajo el cursor en modo Normal pulse: x
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
177
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
178 5. Para insertar o añadir texto escriba:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
179 i escriba el texto a insertar <ESC> inserta el texto antes del cursor
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
180 A escriba el texto a añadir <ESC> añade texto al final de la línea
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
181
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
182 NOTA: Pulsando <ESC> se vuelve al modo Normal o cancela una orden no deseada
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
183 o incompleta.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
184
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
185 Ahora continúe con la Lección 2.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
186
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
187 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
188 Lección 2.1: COMANDOS PARA BORRAR
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
189
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
190
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
191 ** Escriba dw para borrar una palabra **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
192
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
193
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
194 1. Pulse <ESC> para asegurarse de que está en el modo Normal.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
195
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
196 2. Mueva el cursor a la línea inferior señalada con --->.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
197
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
198 3. Mueva el cursor al comienzo de una palabra que desee borrar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
199
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
200 4. Pulse dw para hacer que la palabra desaparezca.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
201
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
202 NOTA: La letra d aparecerá en la última línea inferior derecha
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
203 de la pantalla mientras la escribe. Vim está esperando que escriba w .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
204 Si ve otro carácter que no sea d escribió algo mal, pulse <ESC> y
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
205 comience de nuevo.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
206
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
207 ---> Hay algunas palabras pásalo bien que no pertenecen papel a esta frase.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
208
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
209 5. Repita los pasos 3 y 4 hasta que la frase sea correcta y pase a la
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
210 lección 2.2.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
211
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
212
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
213 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
214 Lección 2.2: MÁS COMANDOS PARA BORRAR
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
215
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
216
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
217 ** Escriba d$ para borrar hasta el final de la línea. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
218
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
219 1. Pulse <ESC> para asegurarse de que está en el modo Normal.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
220
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
221 2. Mueva el cursor a la línea inferior señalada con --->.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
222
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
223 3. Mueva el cursor al final de la línea correcta (DESPUÉS del primer . ).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
224
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
225 4. Escriba d$ para borrar hasta el final de la línea.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
226
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
227 ---> Alguien ha escrito el final de esta línea dos veces. esta línea dos veces.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
228
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
229 5. Pase a la lección 2.3 para entender qué está pasando.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
230
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
231
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
232
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
233 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
234 Lección 2.3: SOBRE OPERADORES Y MOVIMIENTOS
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
235
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
236
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
237 Muchos comandos que cambian texto están compuestos por un operador y un
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
238 movimiento.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
239 El formato para eliminar un comando con el operador de borrado d es el
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
240 siguiente:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
241
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
242 d movimiento
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
243
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
244 Donde:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
245 d - es el operador para borrar.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
246 movimiento - es sobre lo que el comando va a operar (lista inferior).
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
247
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
248 Una lista resumida de movimientos:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
249 w - hasta el comienzo de la siguiente palabra, EXCLUYENDO su primer
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
250 carácter.
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
251 e - hasta el final de la palabra actual, INCLUYENDO el último carácter.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
252 $ - hasta el final de la línea, INCLUYENDO el último carácter.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
253
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
254 Por tanto, al escribir de borrará desde la posición del cursor, hasta
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
255 el final de la palabra.
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
256
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
257 NOTA: Pulsando únicamente el movimiento estando en el modo Normal sin un
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
258 operador, moverá el cursor como se especifica en la lista anterior.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
259
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
260 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
261 Lección 2.4: UTILIZAR UN CONTADOR PARA UN MOVIMIENTO
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
262
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
263
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
264 ** Al escribir un número antes de un movimiento, lo repite esas veces. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
265
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
266 1. Mueva el cursor al comienzo de la línea marcada con --->.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
267
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
268 2. Escriba 2w para mover el cursor dos palabras hacia adelante.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
269
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
270 3. Escriba 3e para mover el cursor al final de la tercera palabra hacia
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
271 adelante.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
272
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
273 4. Escriba 0 (cero) para colocar el cursor al inicio de la línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
274
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
275 5. Repita el paso 2 y 3 con diferentes números.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
276
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
277 ---> Esto es solo una línea con palabras donde poder moverse.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
278
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
279 6. Pase a la lección 2.5.
1624
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
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
283
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
284 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
285 Lección 2.5: UTILIZAR UN CONTADOR PARA BORRAR MAS
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
286
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
287
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
288 ** Al escribir un número con un operador lo repite esas veces. **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
289
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
290 En combinación con el operador de borrado y el movimiento mencionado
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
291 anteriormente, añada un contador antes del movimiento para eliminar más:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
292 d número movimiento
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
293
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
294 1. Mueva el cursor al inicio de la primera palabra en MAYÚSCULAS en la
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
295 línea marcada con --->.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
296
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
297 2. Escriba d2w para eliminar las dos palabras en MAYÚSCULAS.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
298
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
299 3. Repita los pasos 1 y 2 con diferentes contadores para eliminar
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
300 las siguientes palabras en MAYÚSCULAS con un comando.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
301
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
302 ---> Esta ABC DE serie FGHI JK LMN OP de palabras ha sido Q RS TUV limpiada.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
303
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
304
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
305
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
306
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
307
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
308 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
309 Lección 2.6: OPERACIÓN EN LÍNEAS
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
310
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
311
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
312 ** Escriba dd para eliminar una línea completa. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
313
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
314 Debido a la frecuencia con que se elimina una línea completa, los
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
315 diseñadores de Vi, decidieron que sería más sencillo simplemente escribir
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
316 dos letras d para eliminar una línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
317
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
318 1. Mueva el cursor a la segunda línea del párrafo inferior.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
319 2. Escriba dd para eliminar la línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
320 3. Ahora muévase a la cuarta línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
321 4. Escriba 2dd para eliminar dos líneas a la vez.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
322
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
323 ---> 1) Las rosas son rojas,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
324 ---> 2) El barro es divertido,
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
325 ---> 3) La violeta es azul,
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
326 ---> 4) Tengo un coche,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
327 ---> 5) Los relojes dan la hora,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
328 ---> 6) El azúcar es dulce
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
329 ---> 7) Y también lo eres tú.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
330
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
331 La duplicación para borrar líneas también funcionan con los operadores
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
332 mencionados anteriormente.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
333
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
334 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
335 Lección 2.7: EL MANDATO DESHACER
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
336
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
337
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
338 ** Pulse u para deshacer los últimos comandos,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
339 U para deshacer una línea entera. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
340
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
341 1. Mueva el cursor a la línea inferior señalada con ---> y sitúelo bajo el
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
342 primer error.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
343 2. Pulse x para borrar el primer carácter no deseado.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
344 3. Pulse ahora u para deshacer el último comando ejecutado.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
345 4. Ahora corrija todos los errores de la línea usando el comando x.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
346 5. Pulse ahora U mayúscula para devolver la línea a su estado original.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
347 6. Pulse ahora u unas pocas veces para deshacer lo hecho por U y los
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
348 comandos previos.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
349 7. Ahora pulse CTRL-R (mantenga pulsada la tecla CTRL y pulse R) unas
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
350 cuantas veces para volver a ejecutar los comandos (deshacer lo deshecho).
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
351
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
352 ---> Corrrija los errores dee esttta línea y vuuelva a ponerlos coon deshacer.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
353
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
354 8. Estos son unos comandos muy útiles. Ahora vayamos al resumen de la
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
355 lección 2.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
356
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
357
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
358
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
359
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
360 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
361 RESUMEN DE LA LECCIÓN 2
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
362
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
363 1. Para borrar desde el cursor hasta siguiente palabra pulse: dw
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
364 2. Para borrar desde el cursor hasta el final de la palabra pulse: de
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
365 3. Para borrar desde el cursor hasta el final de una línea pulse: d$
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
366 4. Para borrar una línea entera pulse: dd
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
367
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
368 5. Para repetir un movimiento anteponga un número: 2w
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
369 6. El formato para un comando de cambio es:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
370 operador [número] movimiento
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
371 donde:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
372 comando - es lo que hay que hacer, por ejemplo, d para borrar
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
373 [número] - es un número opcional para repetir el movimiento
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
374 movimiento - se mueve sobre el texto sobre el que operar, como
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
375 w (palabra), $ (hasta el final de la línea), etc.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
376 7. Para moverse al inicio de la línea utilice un cero: 0
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
377
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
378 8. Para deshacer acciones previas pulse: u (u minúscula)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
379 Para deshacer todos los cambios de una línea pulse: U (U mayúscula)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
380 Para deshacer lo deshecho pulse: CTRL-R
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
381
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
382
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
383 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
384 Lección 3.1: EL COMANDO «PUT» (poner)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
385
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
386 ** Pulse p para poner (pegar) después del cursor lo último que ha borrado. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
387
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
388 1. Mueva el cursor a la primera línea inferior marcada con --->.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
389
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
390 2. Escriba dd para borrar la línea y almacenarla en un registro de Vim.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
391
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
392 3. Mueva el cursor a la línea c) por ENCIMA de donde debería estar
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
393 la línea eliminada.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
394
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
395 4. Pulse p para pegar la línea borrada por debajo del cursor.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
396
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
397 5. Repita los pasos 2 a 4 para poner todas las líneas en el orden correcto.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
398
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
399 ---> d) ¿Puedes aprenderla tú?
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
400 ---> b) La violeta es azul,
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
401 ---> c) La inteligencia se aprende,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
402 ---> a) Las rosas son rojas,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
403
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
404
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
405 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
406 Lección 3.2: EL COMANDO REEMPLAZAR
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
407
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
408
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
409 ** Pulse rx para reemplazar el carácter bajo el cursor con x . **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
410
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
411 1. Mueva el cursor a la primera línea inferior marcada con --->.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
412
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
413 2. Mueva el cursor para situarlo sobre el primer error.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
414
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
415 3. Pulse r y después el carácter que debería ir ahí.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
416
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
417 4. Repita los pasos 2 y 3 hasta que la primera sea igual a la segunda.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
418
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
419 ---> ¡Cuendo esta línea fue rscrita alguien pulso algunas teclas equibocadas!
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
420 ---> ¡Cuando esta línea fue escrita alguien pulsó algunas teclas equivocadas!
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
421
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
422 5. Ahora pase a la lección 3.3.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
423
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
424 NOTA: Recuerde que debería aprender practicando.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
425
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
426
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
427
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
428 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
429 Lección 3.3: EL COMANDO CAMBIAR
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
430
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
431
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
432 ** Para cambiar hasta el final de una palabra, escriba ce . **
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
433
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
434 1. Mueva el cursor a la primera línea inferior marcada con --->.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
435
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
436 2. Sitúe el cursor en la u de lubrs.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
437
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
438 3. Escriba ce y corrija la palabra (en este caso, escriba 'ínea').
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
439
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
440 4. Pulse <ESC> y mueva el cursor al siguiente error que debe ser cambiado.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
441
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
442 5. Repita los pasos 3 y 4 hasta que la primera frase sea igual a la segunda.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
443
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
444 ---> Esta lubrs tiene unas pocas pskavtad que corregir usem el comando change.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
445 ---> Esta línea tiene unas pocas palabras que corregir usando el comando change.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
446
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
447 Tenga en cuenta que ce elimina la palabra y entra en el modo Insertar.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
448 cc hace lo mismo para toda la línea.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
449
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
450
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
451 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
452 Lección 3.4: MÁS CAMBIOS USANDO c
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
453
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
454 ** El operador change se utiliza con los mismos movimientos que delete. **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
455
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
456 1. El operador change funciona de la misma forma que delete. El formato es:
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
457
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
458 c [número] movimiento
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
459
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
460 2. Los movimientos son también los mismos, tales como w (palabra) o
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
461 $ (fin de la línea).
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
462
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
463 3. Mueva el cursor a la primera línea inferior señalada con --->.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
464
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
465 4. Mueva el cursor al primer error.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
466
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
467 5. Pulse c$ y escriba el resto de la línea para que sea como la segunda
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
468 y pulse <ESC>.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
469
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
470 ---> El final de esta línea necesita alguna ayuda para que sea como la segunda.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
471 ---> El final de esta línea necesita ser corregido usando el comando c$.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
472
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
473 NOTA: Puede utilizar el retorno de carro para corregir errores mientras escribe.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
474
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
475 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
476 RESUMEN DE LA LECCIÓN 3
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
477
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
478
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
479 1. Para volver a poner o pegar el texto que acaba de ser borrado,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
480 escriba p . Esto pega el texto después del cursor (si se borró una
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
481 línea, al pegarla, esta se situará en la línea debajo del cursor).
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
482
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
483 2. Para reemplazar el carácter bajo el cursor, pulse r y luego el
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
484 carácter que quiere que esté en ese lugar.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
485
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
486 3. El operador change le permite cambiar desde la posición del cursor
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
487 hasta donde el movimiento indicado le lleve. Por ejemplo, pulse ce
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
488 para cambiar desde el cursor hasta el final de la palabra, o c$
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
489 para cambiar hasta el final de la línea.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
490
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
491 4. El formato para change es:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
492
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
493 c [número] movimiento
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
494
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
495 Pase ahora a la lección siguiente.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
496
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
497
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
498 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
499 Lección 4.1: UBICACIÓN DEL CURSOR Y ESTADO DEL ARCHIVO
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
500
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
501 ** Pulse CTRL-G para mostrar su situación en el fichero y su estado.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
502 Pulse G para moverse a una determinada línea del fichero. **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
503
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
504 NOTA: ¡¡Lea esta lección entera antes de ejecutar cualquiera de los pasos!!
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
505
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
506 1. Mantenga pulsada la tecla Ctrl y pulse g . Le llamamos a esto CTRL-G.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
507 Aparecerá un mensaje en la parte inferior de la página con el nombre
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
508 del archivo y la posición en este. Recuerde el número de línea
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
509 para el paso 3.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
510
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
511 NOTA: Quizás pueda ver la posición del cursor en la esquina inferior derecha
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
512 de la pantalla. Esto ocurre cuando la opción 'ruler' (regla) está
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
513 habilitada (consulte :help 'ruler' )
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
514
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
515 2. Pulse G para mover el cursor hasta la parte inferior del archivo.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
516 Pulse gg para mover el cursor al inicio del archivo.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
517
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
518 3. Escriba el número de la línea en la que estaba y después G . Esto
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
519 le volverá a la línea en la que estaba cuando pulsó CTRL-G.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
520
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
521 4. Si se siente seguro en poder hacer esto ejecute los pasos 1 a 3.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
522
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
523 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
524 Lección 4.2: EL COMANDO «SEARCH» (buscar)
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
525
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
526 ** Escriba / seguido de una frase para buscar la frase. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
527
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
528 1. En modo Normal pulse el carácter / . Fíjese que tanto el carácter /
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
529 como el cursor aparecen en la última línea de la pantalla, lo mismo
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
530 que el comando : .
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
531
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
532 2. Escriba ahora errroor <INTRO>. Esta es la palabra que quiere buscar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
533
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
534 3. Para repetir la búsqueda de la misma frase otra vez, simplemente pulse n .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
535 Para buscar la misma frase en la dirección opuesta, pulse N .
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
536
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
537 4. Si quiere buscar una frase en la dirección opuesta (hacia arriba),
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
538 utilice el comando ? en lugar de / .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
539
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
540 5. Para regresar al lugar de donde procedía pulse CTRL-O (Mantenga pulsado
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
541 Ctrl mientras pulsa la letra o). Repita el proceso para regresar más atrás.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
542 CTRL-I va hacia adelante.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
543
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
544 ---> "errroor" no es la forma correcta de escribir error, errroor es un error.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
545
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
546 NOTA: Cuando la búsqueda llega al final del archivo, continuará desde el
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
547 comienzo, a menos que la opción 'wrapscan' haya sido desactivada.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
548
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
549 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
550 Lección 4.3: BÚSQUEDA PARA COMPROBAR PARÉNTESIS
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
551
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
552 ** Pulse % para encontrar el paréntesis correspondiente a ),] o } . **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
553
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
554 1. Sitúe el cursor en cualquiera de los caracteres (, [ o { en la línea
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
555 inferior señalada con --->.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
556
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
557 2. Pulse ahora el carácter % .
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
558
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
559 3. El cursor se moverá a la pareja de cierre del paréntesis, corchete
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
560 o llave correspondiente.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
561
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
562 4. Pulse % para mover el cursor a la otra pareja del carácter.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
563
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
564 5. Mueva el cursor a otro (,),[,],{ o } y vea lo que hace % .
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
565
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
566 ---> Esto ( es una línea de prueba con (, [, ], {, y } en ella. ))
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
567
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
568 NOTA: ¡Esto es muy útil en la detección de errores en un programa con
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
569 paréntesis, corchetes o llaves sin pareja.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
570
1624
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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
574 Lección 4.4: EL COMANDO SUSTITUIR
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
575
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
576
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
577 ** Escriba :s/viejo/nuevo/g para sustituir 'viejo' por 'nuevo'. **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
578
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
579 1. Mueva el cursor a la línea inferior señalada con --->.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
580
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
581 2. Escriba :s/laas/las/ <INTRO> . Tenga en cuenta que este mandato cambia
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
582 sólo la primera aparición en la línea de la expresión a cambiar.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
583
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
584 3. Ahora escriba :/laas/la/g . Al añadir la opción g esto significa
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
585 que hará la sustitución global en la línea, cambiando todas las
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
586 ocurrencias del término "laas" en la línea.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
587
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
588 ---> Laas mejores épocas para ver laas flores son laas primaveras.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
589
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
590 4. Para cambiar cada ocurrencia de la cadena de caracteres entre dos líneas,
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
591 Escriba :#,#s/viejo/nuevo/g donde #,# son los números de línea del rango
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
592 de líneas donde se realizará la sustitución.
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
593 Escriba :%s/old/new/g para cambiar cada ocurrencia en todo el
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
594 archivo.
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
595 Escriba :%s/old/new/gc para encontrar cada ocurrencia en todo el
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
596 archivo, pidiendo confirmación para
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
597 realizar la sustitución o no.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
598
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
599 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
600 RESUMEN DE LA LECCIÓN 4
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
601
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
602
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
603 1. CTRL-G muestra la posición del cursor en el fichero y su estado.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
604 G mueve el cursor al final del archivo.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
605 número G mueve el cursor a ese número de línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
606 gg mueve el cursor a la primera línea del archivo.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
607
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
608 2. Escribiendo / seguido de una frase busca la frase hacia ADELANTE.
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
609 Escribiendo ? seguido de una frase busca la frase hacia ATRÁS.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
610 Después de una búsqueda pulse n para encontrar la aparición
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
611 siguiente en la misma dirección o N para buscar en dirección opuesta.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
612
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
613 3. Pulsando % cuando el cursor esta sobre (,), [,], { o } localiza
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
614 la pareja correspondiente.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
615
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
616 4. Para cambiar viejo en el primer nuevo en una línea escriba :s/viejo/nuevo
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
617 Para cambiar todos los viejo por nuevo en una línea escriba :s/viejo/nuevo/g
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
618 Para cambiar frases entre dos números de líneas escriba :#,#s/viejo/nuevo/g
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
619 Para cambiar viejo por nuevo en todo el fichero escriba :%s/viejo/nuevo/g
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
620 Para pedir confirmación en cada caso añada 'c' :%s/viejo/nuevo/gc
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
621
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 Lección 5.1: CÓMO EJECUTAR UN MANDATO EXTERNO
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
625
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
626
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
627 ** Escriba :! seguido de un comando externo para ejecutar ese comando. **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
628
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
629 1. Escriba el conocido comando : para situar el cursor al final de la
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
630 pantalla. Esto le permitirá introducir un comando.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
631
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
632 2. Ahora escriba el carácter ! (signo de admiración). Esto le permitirá
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
633 ejecutar cualquier mandato del sistema.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
634
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
635 3. Como ejemplo escriba ls después del ! y luego pulse <INTRO>. Esto
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
636 le mostrará una lista de su directorio, igual que si estuviera en el
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
637 símbolo del sistema. Si ls no funciona utilice :!dir .
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
638
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
639 NOTA: De esta manera es posible ejecutar cualquier comando externo,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
640 también incluyendo argumentos.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
641
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
642 NOTA: Todos los comando : deben finalizarse pulsando <INTRO>.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
643 De ahora en adelante no siempre se mencionará.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
644
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 Lección 5.2: MÁS SOBRE GUARDAR FICHEROS
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
648
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
649
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
650 ** Para guardar los cambios hechos en un fichero,
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
651 escriba :w NOMBRE_DE_FICHERO **
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
652
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
653 1. Escriba :!dir o :!ls para ver una lista de los archivos
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
654 de su directorio.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
655 Ya sabe que debe pulsar <INTRO> después de ello.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
656
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
657 2. Elija un nombre de fichero que todavía no exista, como TEST.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
658
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
659 3. Ahora escriba :w TEST (donde TEST es el nombre de fichero elegido).
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
660
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
661 4. Esta acción guarda todo el fichero (Vim Tutor) bajo el nombre TEST.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
662 Para comprobarlo escriba :!dir o :!ls de nuevo y vea su directorio.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
663
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
664 NOTA: Si saliera de Vim y volviera a entrar de nuevo con vim TEST , el
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
665 archivo sería una copia exacta del tutorial cuando lo guardó.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
666
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
667 5. Ahora elimine el archivo escribiendo (Windows): :!del TEST
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
668 o (Unix): :!rm TEST
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
669
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
670
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
671 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
672 Lección 5.3: SELECCIONAR TEXTO PARA GUARDAR
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
673
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
674
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
675 ** Para guardar parte del archivo, escriba v movimiento :w ARCHIVO **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
676
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
677 1. Mueva el cursor a esta línea.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
678
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
679 2. Pulse v y mueva el cursor hasta el quinto elemento inferior. Vea que
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
680 el texto es resaltado.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
681
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
682 3. Pulse el carácter : en la parte inferior de la pantalla aparecerá
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
683 :'<,'>
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
684
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
685 4. Pulse w TEST , donde TEST es un nombre de archivo que aún no existe.
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
686 Verifique que ve :'<,'>w TEST antes de pulsar <INTRO>.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
687
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
688 5. Vim escribirá las líneas seleccionadas en el archivo TEST. Utilice
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
689 :!dir o :!ls para verlo. ¡No lo elimine todavía! Lo utilizaremos
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
690 en la siguiente lección.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
691
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
692 NOTA: Al pulsar v inicia la selección visual. Puede mover el cursor para
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
693 hacer la selección más grande o pequeña. Después puede utilizar un
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
694 operador para hacer algo con el texto. Por ejemplo, d eliminará
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
695 el texto seleccionado.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
696
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
697
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
698 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
699 Lección 5.4: RECUPERANDO Y MEZCLANDO FICHEROS
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
700
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
701
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
702 ** Para insertar el contenido de un fichero escriba :r NOMBRE_DEL_FICHERO **
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
703
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
704 1. Sitúe el cursor justo por encima de esta línea.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
705
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
706 NOTA: Después de ejecutar el paso 2 verá texto de la lección 5.3. Después
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
707 DESCIENDA hasta ver de nuevo esta lección.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
708
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
709 2. Ahora recupere el archivo TEST utilizando el comando :r TEST donde
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
710 TEST es el nombre que ha utilizado.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
711 El archivo que ha recuperado se colocará debajo de la línea donde
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
712 se encuentra el cursor.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
713
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
714 3. Para verificar que se ha recuperado el archivo, suba el cursor y
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
715 compruebe que ahora hay dos copias de la lección 5.3, la original y
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
716 la versión del archivo.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
717
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
718 NOTA: También puede leer la salida de un comando externo. Por ejemplo,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
719 :r !ls lee la salida del comando ls y lo pega debajo de la línea
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
720 donde se encuentra el cursor.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
721
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
722
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
723 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
724 RESUMEN DE LA LECCIÓN 5
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
725
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
726
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
727 1. :!comando ejecuta un comando externo.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
728
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
729 Algunos ejemplos útiles son:
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
730 (Windows) (Unix)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
731 :!dir :!ls - muestra el contenido de un directorio.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
732 :!del ARCHIVO :!rm ARCHIVO - borra el fichero ARCHIVO.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
733
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
734 2. :w ARCHIVO escribe el archivo actual de Vim en el disco con el
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
735 nombre de ARCHIVO.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
736
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
737 3. v movimiento :w ARCHIVO guarda las líneas seleccionadas visualmente
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
738 en el archivo ARCHIVO.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
739
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
740 4. :r ARCHIVO recupera del disco el archivo ARCHIVO y lo pega debajo
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
741 de la posición del cursor.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
742
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
743 5. :r !dir lee la salida del comando dir y lo pega debajo de la
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
744 posición del cursor.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
745
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
746
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
747 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
748 Lección 6.1: EL COMANDO OPEN
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
749
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
750
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
751 ** Pulse o para abrir una línea debajo del cursor
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
752 y situarle en modo Insertar **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
753
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
754 1. Mueva el cursor a la línea inferior señalada con --->.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
755
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
756 2. Pulse la letra minúscula o para abrir una línea por DEBAJO del cursor
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
757 y situarle en modo Insertar.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
758
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
759 3. Ahora escriba algún texto y después pulse <ESC> para salir del modo
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
760 insertar.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
761
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
762 ---> Después de pulsar o el cursor se sitúa en la línea abierta en modo Insertar.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
763
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
764 4. Para abrir una línea por ENCIMA del cursor, simplemente pulse una O
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
765 mayúscula, en lugar de una o minúscula. Pruebe esto en la línea siguiente.
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
766
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
767 ---> Abra una línea sobre esta pulsando O cuando el cursor está en esta línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
768
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
769
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
770
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
771 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
772 Lección 6.2: EL COMANDO APPEND (añadir)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
773
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
774
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
775 ** Pulse a para insertar texto DESPUÉS del cursor. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
776
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
777 1. Mueva el cursor al inicio de la primera línea inferior señalada con --->.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
778
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
779 2. Escriba e hasta que el cursor esté al final de lín .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
780
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
781 3. Escriba una a (minúscula) para añadir texto DESPUÉS del cursor.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
782
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
783 4. Complete la palabra como en la línea inferior. Pulse <ESC> para salir
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
784 del modo insertar.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
785
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
786 5. Utilice e para moverse hasta la siguiente palabra incompleta y
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
787 repita los pasos 3 y 4.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
788
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
789 ---> Esta lín le permit prati cómo añad texto a una línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
790 ---> Esta línea le permitirá practicar cómo añadir texto a una línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
791
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
792 NOTA: a, i y A todos entran en el modo Insertar, la única diferencia es
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
793 dónde ubican los caracteres insertados.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
794
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
795 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
796 Lección 6.3: OTRA VERSIÓN DE REPLACE (remplazar)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
797
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
798
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
799 ** Pulse una R mayúscula para sustituir más de un carácter. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
800
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
801 1. Mueva el cursor a la primera línea inferior señalada con --->. Mueva
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
802 el cursor al inicio de la primera xxx .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
803
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
804 2. Ahora pulse R y escriba el número que aparece en la línea inferior,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
805 esto reemplazará el texto xxx .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
806
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
807 3. Pulse <ESC> para abandonar el modo Reemplazar. Observe que el resto de
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
808 la línea permanece sin modificaciones.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
809
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
810 4. Repita los pasos para reemplazar el texto xxx que queda.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
811
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
812 ---> Sumar 123 a xxx da un resultado de xxx.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
813 ---> Sumar 123 a 456 da un resultado de 579.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
814
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
815 NOTA: El modo Reemplazar es como el modo Insertar, pero cada carácter escrito
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
816 elimina un carácter ya existente.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
817
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
818 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
819 Lección 6.4: COPIAR Y PEGAR TEXTO
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
820
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
821
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
822
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
823 ** Utilice el operador y para copiar texto y p para pegarlo. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
824
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
825 1. Mueva el cursor a la línea inferior marcada con ---> y posicione el
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
826 cursor después de "a)".
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
827
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
828 2. Inicie el modo Visual con v y mueva el cursor justo antes de "primer".
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
829
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
830 3. Pulse y para copiar ("yank") el texto resaltado.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
831
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
832 4. Mueva el cursor al final de la siguiente línea mediante: j$
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
833
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
834 5. Pulse p para poner (pegar) el texto. Después escriba: el segundo <ESC>.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
835
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
836 6. Utilice el modo visual para seleccionar " elemento.", y cópielo con y
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
837 mueva el cursor al final de la siguiente línea con j$ y pegue el texto
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
838 recién copiado con p .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
839
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
840 ---> a) este es el primer elemento.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
841 b)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
842
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
843 NOTA: También puede utilizar y como un operador: yw copia una palabra,
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
844 yy copia la línea completa donde está el cursor, después p pegará
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
845 esa línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
846
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
847 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
848 Lección 6.5: ACTIVAR (SET) UNA OPCIÓN
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
849
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
850
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
851 ** Active una opción para buscar o sustituir ignorando si está
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
852 en mayúsculas o minúsculas el texto. **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
853
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
854 1. Busque la cadena de texto 'ignorar' escribiendo: /ignorar <INTRO>
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
855 Repita la búsqueda varias veces pulsando n .
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
856
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
857 2. Active la opción 'ic' (Ignore case o ignorar mayúsculas y minúsculas)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
858 mediante: :set ic
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
859
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
860 3. Ahora busque de nuevo 'ignorar' pulsando n
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
861 Observe que ahora también se encuentran Ignorar e IGNORAR.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
862
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
863 4. Active las opciones 'hlsearch' y 'incsearch' escribiendo: :set hls is
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
864
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
865 5. Ahora escriba de nuevo el comando de búsqueda y vea qué ocurre: /ignore <INTRO>
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
866
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
867 6. Para inhabilitar el ignorar la distinción de mayúsculas y minúsculas
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
868 escriba: :set noic
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
869
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
870 NOTA: Para eliminar el resaltado de las coincidencias escriba: :nohlsearch
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
871 NOTA: Si quiere ignorar las mayúsculas y minúsculas, solo para un comando
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
872 de búsqueda, utilice \c en la frase: /ignorar\c <INTRO>
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
873 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
874 RESUMEN DE LA LECCIÓN 6
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
875
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
876
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
877 1. Escriba o para abrir una línea por DEBAJO de la posición del cursor y
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
878 entrar en modo Insertar.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
879 Escriba O para abrir una línea por ENCIMA de la posición del cursor y
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
880 entrar en modo Insertar
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
881
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
882 2. Escriba a para insertar texto DESPUÉS del cursor.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
883 Escriba A para insertar texto al final de la línea.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
884
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
885 3. El comando e mueve el cursor al final de una palabra.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
886
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
887 4. El operador y copia (yank) texto, p lo pega (pone).
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
888
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
889 5. Al escribir una R mayúscula entra en el modo Reemplazar hasta que
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
890 se pulsa <ESC> .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
891
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
892 6. Al escribir ":set xxx" activa la opción "xxx". Algunas opciones son:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
893 'ic' 'ignorecase' ignorar mayúsculas/minúsculas al buscar
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
894 'is' 'incsearch' mostrar las coincidencias parciales para la búsqueda
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
895 de una frase
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
896 'hls' 'hlsearch' resalta todas las coincidencias de la frases
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
897 Puedes utilizar tanto los nombre largos o cortos de las opciones.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
898
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 28777
diff changeset
899 7. Añada "no" para inhabilitar una opción: :set noic
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
900
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
901 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
902 Lección 7: OBTENER AYUDA
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
903
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
904
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
905 ** Utilice el sistema de ayuda en línea **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
906
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
907 Vim dispone de un sistema de ayuda en línea. Para comenzar, pruebe una
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
908 de estas tres formas:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
909 - pulse la tecla <AYUDA> (si dispone de ella)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
910 - pulse la tecla <F1> (si dispone de ella)
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
911 - escriba :help <INTRO>
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
912
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
913 Lea el texto en la ventana de ayuda para descubrir cómo funciona la ayuda.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
914 Escriba CTRL-W CTRL-W para saltar de una ventana a otra.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
915 Escriba :q <INTRO> para cerrar la ventana de ayuda.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
916
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
917 Puede encontrar ayuda en casi cualquier tema añadiendo un argumento al
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
918 comando «:help». Pruebe éstos (no olvide pulsar <INTRO>):
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
919
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
920 :help w
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
921 :help c_CTRL-D
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
922 :help insert-index
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
923 :help user-manual
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
924 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
925 Lección 7.2: CREAR UN SCRIPT DE INICIO
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
926
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
927
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
928 ** Habilitar funcionalidades en Vim **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
929
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
930 Vim tiene muchas más funcionalidades que Vi, pero algunas están
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
931 inhabilitadas de manera predeterminada.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
932 Para empezar a utilizar más funcionalidades debería crear un archivo
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
933 llamado "vimrc".
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
934
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
935 1. Comience a editar el archivo "vimrc". Esto depende de su sistema:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
936 :e ~/.vimrc para Unix
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
937 :e ~/_vimrc para Windows
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
938
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
939 2. Ahora lea el contenido del archivo "vimrc" de ejemplo:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
940 :r $VIMRUNTIME/vimrc_example.vim
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
941
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
942 3. Guarde el archivo mediante:
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
943 :w
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
944
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
945 La próxima vez que inicie Vim, este usará el resaltado de sintaxis.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
946 Puede añadir todos sus ajustes preferidos a este archivo "vimrc".
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
947 Para más información escriba :help vimrc-intro
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
948
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
949 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
950 Lección 7.3: COMPLETADO
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
951
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
952
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
953 ** Completado de la línea de comandos con CTRL-D o <TAB> **
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
954
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
955 1. Asegúrese de que Vim no está en el modo compatible: :set nocp
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
956
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
957 2. Vea qué archivos existen en el directorio con: :!ls o :!dir
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
958
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
959 3. Escriba el inicio de un comando: :e
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
960
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
961 4. Pulse CTRL-D y Vim mostrará una lista de comandos que empiezan con "e".
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
962
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
963 5. Añada d<TAB> y Vim completará el nombre del comando a ":edit".
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
964
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
965 6. Ahora añada un espacio y el inicio del nombre de un archivo: :edit FIL
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
966
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
967 7. Pulse <TAB>. Vim completará el nombre (si solo hay uno).
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
968
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
969 NOTA: El completado funciona con muchos comandos. Solo pulse CTRL-D o
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
970 <TAB>. Es especialmente útil para :help .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
971
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
972 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
973 RESUMEN DE LA LECCIÓN 7
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
974
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
975
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
976 1. Escriba :help o pulse <F1> o <HELP> para abrir la ventana de ayuda.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
977
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
978 2. Escriba :help cmd para encontrar ayuda sobre cmd .
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
979
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
980 3. Escriba CTRL-W CTRL-W para saltar a otra ventana.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
981
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
982 4. Escriba :q para cerrar la ventana de ayuda.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
983
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
984 5. Cree un fichero vimrc de inicio para guardar sus ajustes preferidos.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
985
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
986 6. Cuando escriba un comando : pulse CTRL-D para ver posibles opciones.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
987 Pulse <TAB> para utilizar una de las opciones de completado.
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
988
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
989
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
990
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
991
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
992
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
993
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
994
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
995 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
996
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
997 Aquí concluye el tutor de Vim. Está pensado para dar una visión breve del
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
998 editor Vim, lo suficiente para permitirle usar el editor de forma bastante
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
999 sencilla. Está muy lejos de estar completo pues Vim tiene muchísimos más
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1000 comandos. Lea el siguiente manual de usuario: ":help user-manual".
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1001
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1002 Para lecturas y estudios posteriores se recomienda el libro:
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1003 Vim - Vi Improved - de Steve Oualline
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1004 Editado por: New Riders
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1005 El primer libro dedicado completamente a Vim. Especialmente útil para
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1006 recién principiantes.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1007 Tiene muchos ejemplos e imágenes.
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1008 Vea https://iccf-holland.org/click5.html
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1009
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1010 Este tutorial ha sido escrito por Michael C. Pierce y Robert K. Ware,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1011 Colorado School of Mines utilizando ideas suministradas por Charles Smith,
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1012 Colorado State University.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1013 E-mail: bware@mines.colorado.edu.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1014
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1015 Modificado para Vim por Bram Moolenaar.
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1016
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1017 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1018
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1019 Traducido del inglés por:
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1020
28777
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1021 * Eduardo F. Amatria
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1022 Correo electrónico: eferna1@platea.pntic.mec.es
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1023 * Victorhck
b96ceb97e896 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1024 Correo electrónico: victorhck@opensuse.org
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1025
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1026 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~