↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

7 Vim Tips That Changed My Life (With Demo)

The author says these are quick Vim tips learned from others while using Vim full time at work. The post also recommends starting with basic learning resources and treating Vim as something you improve in small steps, not something you must master all at once.

Reading notes
#

  • Use S to start typing on a new line at the correct indentation without tabbing first.
  • Use CTRL+w = to make split windows the same size again.
  • Use % with the cursor on a bracket or brace to jump to its matching pair.
  • Use >> and << to indent or unindent one line.
  • Use > and < on selected lines to indent or unindent multiple lines.
  • Use =G from the top of the file to fix indentation in the whole file.
  • Use :tabnew to open a new tab, gt and gT to move between tabs, and :tabo to close the other tabs.
  • Use CTRL+o to jump back to a previous cursor position, including a file you were just editing.