Herramientas de usuario

Herramientas del sitio


wiki2:vim

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
wiki2:vim [2019/11/11 10:37]
alfred [Navigating the file]
wiki2:vim [2020/05/09 09:25] (actual)
Línea 1: Línea 1:
 ====== Vi/Vim ====== ====== Vi/Vim ======
  
-===== Basic edition ===== 
 <​code>​ <​code>​
 +vim --version ​ shows the vim version and its enabled complements
 +vim -g         ​starts vim in graphical IDE
 +</​code>​
 +===== Edition =====
 +<​code>​
 +u           Undo last action
 dd          Remove current line dd          Remove current line
 d5d         ​Remove five lines d5d         ​Remove five lines
 +:e!         ​Reread the file and override done changes
 </​code>​ </​code>​
  
Línea 12: Línea 18:
 /<​word> ​          ​Search that word. n key will look for the next one. /<​word> ​          ​Search that word. n key will look for the next one.
 gg                Move to the beginning of the line gg                Move to the beginning of the line
 +</​code>​
 +
 +===== IDE =====
 +<​code>​
 +set number ​       Show line numbers
 </​code>​ </​code>​
 ===== Tabs ===== ===== Tabs =====
Línea 17: Línea 28:
 :tabe file      To open a file in a tab :tabe file      To open a file in a tab
 gT and gt       To change between tabs gT and gt       To change between tabs
 +:qa             To close all tabs at once
 </​code>​ </​code>​
  
wiki2/vim.1573468678.txt.gz · Última modificación: 2020/05/09 09:25 (editor externo)