📎 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
Sto 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
=Gfrom the top of the file to fix indentation in the whole file. - Use
:tabnewto open a new tab,gtandgTto move between tabs, and:taboto close the other tabs. - Use
CTRL+oto jump back to a previous cursor position, including a file you were just editing.
