3 ms·
0 and $ go to the beginning/end of line without entering insert mode You might find ^ more useful than 0 for indented code as it takes you to the beginning of
by dhimes 16y ago
0 and $ go to the beginning/end of line without entering insert mode
You might find ^ more useful than 0 for indented code as it takes you to the beginning of the text on the line (like the regexp).
- dfischer 16y agoGreat tip! I will be using this one.
- burgerbrain 16y agoIf your aim is to indent/de-indent text, try the > and < commands (in normal mode). I also find that selecting large blocks of text then using the = command to autoindent everything is exceedingly useful.
- dhimes 16y agodo you know how to highlight a block then double-indent? I can't make that work. With a block highlighted, I only know how to indent one ts at a time (then re-hightlight, etc.).