5 ms·
The VIM ones are my favorite - I'm always blown away with the simple keyboard shortcuts that could have saved me hours had I known them 2 years ago. TIL just t
by laddng 6y ago
The VIM ones are my favorite - I'm always blown away with the simple keyboard shortcuts that could have saved me hours had I known them 2 years ago.
TIL just typing "=" in Vim fixes all my indentation
Just subscribed to his newsletter so I can get these and not forget about this cool repo!
- IngoBlechschmid 6y agoThe absolute best Vim command of all times is "ciw", or its variants "ci(", "cip", ... You use this command when your cursor is in the middle of a word (or parenthetical expression or paragraph or ...) and you want to replace that word by a new one. Maybe it's too well-known, but this command changed my life and I haven't found in the linked list of TILs.
- RMPR 6y agoI got that one from Drew Neil's book: Practical Vim
- simonmales 6y agoSweet find. If you want to change a single line without doing a visual selection, '==' does the trick.