create account

Tutorial de Vim. N06. Modo normal, edición de texto by rafaelaquino

View this thread on: hive.blogpeakd.comecency.com
· @rafaelaquino ·
$2.28
Tutorial de Vim. N06. Modo normal, edición de texto
Cordiales Saludos


<center>
![06_vim.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23wM4fDnXgxkWZie3HwfbdezusuXTGq24v9CrHbzdfea21VyNf4YPtRsSuuuN491tmLPo.png)
</center>

## Preparando nuestra área de trabajo

Para la publicación de hoy creé un nuevo archivo de texto a partir de un conocido comando de linux: **apropos**, ```apropos editor > 06_ejercicio.txt```. Fue creado y revisado su contenido con **cat**.


<center>
![06_1.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmj5f6qv4Gq3MmGKiw2TtRmLLHCX1sv4gmQRzqhBJLmX9rR6jD4jMxEvRuzDFJ8ZNCw.png)
</center>

Entremos a **vim**, para verificar que todo está **ok**, ya que es el editor que nos compete en este momento.
<center>
![06_2.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmj5emVg84jkjVP94vgQw4R5uH7FX8wogizjuwDdLbFAs7A3ZKcYyYeFHztc4LcPtLj.png)
</center>
Hoy les tengo **un plus**, dentro de vim podemos escribir comandos de nuestra terminal.
En este caso realizaré una copia del archivo recien creado. Te recomiendo que cuando estés por **editar** un archivo, realices una copia del mismo. No por estarar realizando este *tutorial de vim* sino como práctica habitual en cualquier edición de archivos. 
</center>
![06_3.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/EocDNWFxdmCTh4DLZVjviEhHEMNZT1ikfRdioFFs2E9hWbgW2UU2zRR3AdkHMMuDzt5.png)
</center>
Listo, fue copiado satisfactoriamente.
<center>
![06_4.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tcE6R8N3zgNo3JHuqAAr23tvo3DKLKvYMgVAHKFp8LAFsWPAYQWoneDanuMUxSpxfR4.png)
</center>

Trabajaremos con el archivo: ```06_ejercicio_copia.txt```
~~~
atobm (1)            - bitmap editor and converter utilities for the X Window...
bitmap (1)           - bitmap editor and converter utilities for the X Window...
bmtoa (1)            - bitmap editor and converter utilities for the X Window...
cinnamon-menu-editor (1) - Editor for the panel menu
ed (1)               - line-oriented text editor
editor (1)           - Vi IMproved, a programmer's text editor
editres (1)          - a dynamic resource editor for X Toolkit applications
ex (1)               - Vi IMproved, a programmer's text editor
gview (1)            - Vi IMproved, a programmer's text editor
gvim (1)             - Vi IMproved, a programmer's text editor
id3 (1)              - an ID3 tag editor
jfs_debugfs (8)      - shell-type JFS file system editor
mintsources (1)      - Software Sources List editor
nano (1)             - Nano's ANOther editor, inspired by Pico
nm-connection-editor (1) - network connection editor for NetworkManager
pico (1)             - Nano's ANOther editor, inspired by Pico
red (1)              - line-oriented text editor
rgview (1)           - Vi IMproved, a programmer's text editor
rgvim (1)            - Vi IMproved, a programmer's text editor
rview (1)            - Vi IMproved, a programmer's text editor
rvim (1)             - Vi IMproved, a programmer's text editor
sed (1)              - stream editor for filtering and transforming text
select-editor (1)    - select your default sensible-editor from all installed...
sensible-editor (1)  - sensible editing
software-properties-gtk (1) - Software Sources List editor
software-properties-kde (1) - Software Sources List editor
software-sources (1) - Software Sources List editor
tc-pedit (8)         - generic packet editor action
tc-skbmod (8)        - user-friendly packet editor action
vi (1)               - Vi IMproved, a programmer's text editor
view (1)             - Vi IMproved, a programmer's text editor
vim (1)              - Vi IMproved, a programmer's text editor
xed (1)              - The Text Editor
xedit (1)            - simple text editor for X
~                                                                                     
"06_ejercicio_copia.txt" 34L, 2072B escritos 

~~~


## Modo normal, edición de texto


#### 🔸 x (Teclado - x minúscula)
##### Borrado de una letra
Ubicándonos en el lugar que deseamos borrar la letra, estando el **modo normal**, con la letra **x** podemos borrar el carácter deseado.  


| | | 
:-------------------------:|:-------------------------:
![06_5.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmYz1UN3LrfArzbsJf8yYSAvMazTKZRrLm8XmSQnMQ4KojvvmnGSprYVVXEZtZBPF2v.png)|![06_6.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23uR7UJxFSUWGrTC6TaAzY1a6Z9vfCwAyyv6sNM9YomGr8GquGzSocohDVHWhoqdrk8Du.png)

#### 🔸 u (Teclado - u minúscula)
##### Deshacer

Para deshacer la última acción, lo realizamos con la letra **u**. En este caso la última acción fue de *borrado de un carácter*, por eso vuelve a aparecer el número uno que fue borrado.

| | | 
:-------------------------:|:-------------------------:
![06_6.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23uR7UJxFSUWGrTC6TaAzY1a6Z9vfCwAyyv6sNM9YomGr8GquGzSocohDVHWhoqdrk8Du.png)|![06_5.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmYz1UN3LrfArzbsJf8yYSAvMazTKZRrLm8XmSQnMQ4KojvvmnGSprYVVXEZtZBPF2v.png)

#### 🔸 dw (Teclado - dw minúscula)
##### Borrar toda una Palabra

Con **dw** borraremos una palabra a partir de donde se encuentre el cursor.


| | | 
:-------------------------:|:-------------------------:
![06_7.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/EoH2KLa2HVwTDcWdaR5NPs8mx2UG97Vv9UDY8rbmzw1orLi2D8SysESXCCTDL3EQ4M7.png)|![06_8.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23u6LDsMH1iuYMMCA5RRjaRoWmowpPcxWMxL62bzzT2ZB23yydzic5UqrN7gXdXxJd7ut.png)


#### 🔸 d$ (Teclado - d$)
##### Borrar toda la linea después de la ubicación del cursor.
Con **d$**, borraremos el resto de la línea donde se encuentre el cursor.

| | | 
:-------------------------:|:-------------------------:
![06_9.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/EoH2Ha4JDn7hzn2G3LmaS6dZGV1RLT2hBXYMeNySa9Dteanyd7SzjXNKt8mvAddypFh.png)|![06_10.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/EoCmZ2pmo2rY2zprsNWrMM7S56ofcZ4AK3zEkREStSm7caMYLZzdFM1SjuGHRrKorVD.png)


#### 🔸 dd (Teclado - dd minúscula)
##### Borrar toda la lénea

Para borrar toda un línea usaremos **dd**, y la línea se borrará toda.
| | | 
:-------------------------:|:-------------------------:
![06_11.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tHQhjvtLJ8vpeAEEF1LJDw7KEmTd1RLWV6RwLniMwREtsBt3xDUKgi4WzAdHWYV1RWM.png)|![06_12.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmYu7eQwmSqVGw7pVdou9jzGANTtfNN2CtoX9B2ZfRCHjn8nZYH8hhC5Zk7W3uUgKG1.png)



#### 🔸 d0 (Teclado - d0 )
##### Borrar la linea antes de la ubicación del cursor

Dependiendo donde estemos ubicado al teclear **d0**, borrará toda la línea anterior a la ubicación del cursor.

| | | 
:-------------------------:|:-------------------------:
![06_13.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tHQhjvumXnMynukq6AqGxR39HFBn3hbAtWczfgUgRxZMAJjS2bP78b7ncqVi5JLHzFv.png)|![06_14.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tSoEHkhQz5wihJN7MpixZiStXaGCnWzVsUgYFP5h8Fp46nnPWWttvoqtq74HeoHepgm.png)



#### 🔸 r (Teclado - r minúscula )
##### Reemplazar

Con la **r**, dependiendo donde esté el cursor podemos reemplazar una letra. En el siguiente ejemplo reemplacé la letra **b** por la letra **t**.


| | | 
:-------------------------:|:-------------------------:
![06_15.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/48Gis45kyvMFwk4Z4N7uK4WPMzWgxXEqooE4R97AnyYdRBN9FEopVT1hpTgvcGrv8c.png)|![06_16.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23tHQnUQFjR5uhzFFfiZuk16BKbfCg73NLDLwt1p7TvKAyKdPDpfZtSUCRc13BMeQCKe4.png)


Todas estas opciones vistas hoy las uso con frecuencia. A veces unas más que otras. Hay otras acciones, muchas más pero el fin de este pequeño tutorial es adentrarnos al uso de **vim** queda de nuestra parte profundizar en cada tema. Auque con lo que veamos aquí podemos trabajar cómodamente.

Hasta una próxima publciación... A practicar


---

>**No nos abrumemos**: Esto se aprende de forma natural con la entrada constante a practicar con cualquier tipo de documento, te recomiendo que practiques un rato diariamente y verás que todas las letras usadas hoy se aprenden de manera natural. Las latras la utilizaremos de forma natural y casi sin darnos cuenta.**Aprender este editor: vim**. Nos permite, pasar gratos momentos y lo mejor aun ocupar la mente en algo productivo.  



<center>![01_vim_separador.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23vhAgx2YQWwwzmwCsvoKkbY3gP1oPfaUWWtQHT7qfpfEXokd1WdyvFmRh5eCG2VFJf1R.png)</center>

Mi curso de linux, lo puedes revisar por aquí: https://siraquino.github.io/pythoncumanes/linux.html 

Te animo a que aprendas linux porque muchas de las acciones que realizo en este curso están bajo el sistema operativo Linux. En mi caso estoy usando **Linux Mint**. De todas manera puedes seguir l curso bajo cualquier otro sistema operativo.

<center>![01_vim_separador.png](https://files.peakd.com/file/peakd-hive/rafaelaquino/23vhAgx2YQWwwzmwCsvoKkbY3gP1oPfaUWWtQHT7qfpfEXokd1WdyvFmRh5eCG2VFJf1R.png)</center>

[Mi twitter](https://twitter.com/Rafa_elaquino)
Nos vemos en una próxima entrega!
Rafael Aquino  
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 210 others
properties (23)
authorrafaelaquino
permlinktutorial-de-vim-n06-modo-normal-edicion-de-texto
categoryhive-116823
json_metadata{"app":"peakd/2024.5.1","format":"markdown","tags":["spanish","linux","stemsocial","stem-espanol","neoxian","tribes","ctp","freesoftware","opensource","developer"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/rafaelaquino/23wM4fDnXgxkWZie3HwfbdezusuXTGq24v9CrHbzdfea21VyNf4YPtRsSuuuN491tmLPo.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmj5f6qv4Gq3MmGKiw2TtRmLLHCX1sv4gmQRzqhBJLmX9rR6jD4jMxEvRuzDFJ8ZNCw.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmj5emVg84jkjVP94vgQw4R5uH7FX8wogizjuwDdLbFAs7A3ZKcYyYeFHztc4LcPtLj.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/EocDNWFxdmCTh4DLZVjviEhHEMNZT1ikfRdioFFs2E9hWbgW2UU2zRR3AdkHMMuDzt5.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23tcE6R8N3zgNo3JHuqAAr23tvo3DKLKvYMgVAHKFp8LAFsWPAYQWoneDanuMUxSpxfR4.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmYz1UN3LrfArzbsJf8yYSAvMazTKZRrLm8XmSQnMQ4KojvvmnGSprYVVXEZtZBPF2v.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23uR7UJxFSUWGrTC6TaAzY1a6Z9vfCwAyyv6sNM9YomGr8GquGzSocohDVHWhoqdrk8Du.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/EoH2KLa2HVwTDcWdaR5NPs8mx2UG97Vv9UDY8rbmzw1orLi2D8SysESXCCTDL3EQ4M7.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23u6LDsMH1iuYMMCA5RRjaRoWmowpPcxWMxL62bzzT2ZB23yydzic5UqrN7gXdXxJd7ut.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/EoH2Ha4JDn7hzn2G3LmaS6dZGV1RLT2hBXYMeNySa9Dteanyd7SzjXNKt8mvAddypFh.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/EoCmZ2pmo2rY2zprsNWrMM7S56ofcZ4AK3zEkREStSm7caMYLZzdFM1SjuGHRrKorVD.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23tHQhjvtLJ8vpeAEEF1LJDw7KEmTd1RLWV6RwLniMwREtsBt3xDUKgi4WzAdHWYV1RWM.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23tmYu7eQwmSqVGw7pVdou9jzGANTtfNN2CtoX9B2ZfRCHjn8nZYH8hhC5Zk7W3uUgKG1.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23tHQhjvumXnMynukq6AqGxR39HFBn3hbAtWczfgUgRxZMAJjS2bP78b7ncqVi5JLHzFv.png","https://files.peakd.com/file/peakd-hive/rafaelaquino/23tSoEHkhQz5wihJN7MpixZiStXaGCnWzVsUgYFP5h8Fp46nnPWWttvoqtq74HeoHepgm.png"]}
created2024-05-15 20:55:57
last_update2024-05-15 20:55:57
depth0
children2
last_payout2024-05-22 20:55:57
cashout_time1969-12-31 23:59:59
total_payout_value1.158 HBD
curator_payout_value1.118 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9,118
author_reputation109,064,031,880,368
root_title"Tutorial de Vim. N06. Modo normal, edición de texto"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id133,687,694
net_rshares5,321,443,590,548
author_curate_reward""
vote details (274)
@hivebuzz ·
Congratulations @rafaelaquino! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

<table><tr><td><img src="https://images.hive.blog/60x70/https://hivebuzz.me/@rafaelaquino/payout.png?202405161807"></td><td>You received more than 2000 HP as payout for your posts, comments and curation.<br>Your next payout target is 3000 HP.<br><sub>The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD</sub></td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@rafaelaquino) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out our last posts:**
<table><tr><td><a href="/hive-122221/@hivebuzz/lpud-202405"><img src="https://images.hive.blog/64x128/https://i.imgur.com/pVZi2Md.png"></a></td><td><a href="/hive-122221/@hivebuzz/lpud-202405">LEO Power Up Day - May 15, 2024</a></td></tr></table>
properties (22)
authorhivebuzz
permlinknotify-1715883088
categoryhive-116823
json_metadata{"image":["https://hivebuzz.me/notify.t6.png"]}
created2024-05-16 18:11:27
last_update2024-05-16 18:11:27
depth1
children0
last_payout2024-05-23 18:11:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,063
author_reputation369,206,864,838,106
root_title"Tutorial de Vim. N06. Modo normal, edición de texto"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id133,709,487
net_rshares0
@stemsocial ·
re-rafaelaquino-tutorial-de-vim-n06-modo-normal-edicion-de-texto-20240517t124434467z
<div class='text-justify'> <div class='pull-left'>
 <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div>

Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.&nbsp;<br />&nbsp;<br />
</div>
properties (22)
authorstemsocial
permlinkre-rafaelaquino-tutorial-de-vim-n06-modo-normal-edicion-de-texto-20240517t124434467z
categoryhive-116823
json_metadata{"app":"STEMsocial"}
created2024-05-17 12:44:33
last_update2024-05-17 12:44:33
depth1
children0
last_payout2024-05-24 12:44:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length565
author_reputation22,903,677,158,169
root_title"Tutorial de Vim. N06. Modo normal, edición de texto"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id133,730,999
net_rshares0