Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
wiki2:vim [2019/08/28 10:23] alfred [Basic edition] |
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 10: | Línea 16: | ||
| <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 15: | 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> | ||