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/08/27 08:15]
alfred [Vi/Vim]
wiki2:vim [2020/05/09 09:25] (actual)
Línea 1: Línea 1:
 ====== Vi/Vim ====== ====== Vi/Vim ======
 +
 +<​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
 +d5d         ​Remove five lines
 +:e!         ​Reread the file and override done changes
 +</​code>​
  
 ===== Navigating the file ===== ===== Navigating the file =====
 <​code>​ <​code>​
 :<​n_line> ​        Go to that num of line :<​n_line> ​        Go to that num of line
 +/<​word> ​          ​Search that word. n key will look for the next one.
 +gg                Move to the beginning of the line
 +</​code>​
 +
 +===== IDE =====
 +<​code>​
 +set number ​       Show line numbers
 </​code>​ </​code>​
 ===== Tabs ===== ===== Tabs =====
Línea 9: 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.1566893727.txt.gz · Última modificación: 2020/05/09 09:25 (editor externo)