3 ms·
The real advantages of Vim start to become clear once you know the basics and start to understand in how many ways you can combine them efficiently. You can pr
by alpaca128 6y ago
The real advantages of Vim start to become clear once you know
the basics and start to understand in how many ways you can
combine them efficiently.
You can press 'dw' to delete the word right of the cursor. 'd/]'
to delete everything from the cursor to the next closing
bracket("delete and search next ]"). 'dip' to delete the whole
paragraph around the cursor("delete in paragraph"). 'di{' to
delete everything between the closest pair of curly brackets.
And this doesn't just apply to deletion but most other
operations. Vim lets you just combine delete/copy/replace/...
commands with inputs that move your cursor, whether it's just
the current line or a whole 100-line table column. And of course
you can tell it to repeat those operations by entering a number
beforehand, or just repeat the last operation by pressing '.'.
Vim doesn't make you a 10x developer but it will make you think
"oh man, was it really that cumbersome?" whenever you go back to
a normal editor. Do you like always moving your hand to the
mouse and back when you want to select text? Probably not. Vim
makes that step completely unnecessary, among other things.
Don't get me wrong, it's not for everyone and that's fine. But
if it fits your way of doing things it's a super efficient and
flexible tool that is only limited by the user. I've been using
it for over 5 years and still learn new, clever ways of doing
things quicker.
- qwerty456127 6y ago> You can press 'dw' to delete the word right of the cursor. And I can press Ctrl+Del to achieve the same. Right here in this commend edit form. > delete everything from the cursor to the next closing bracket This seems slightly interesting but not really. Many good text editors would highlight the matching bracket and it usually is just a tiny bit more slow to delete everything to that point. > 'dip' to delete the whole paragraph around the cursor("delete in paragraph") Hardly ever needed this in my entire life. > And of course you can tell it to repeat those operations by entering a number beforehand, or just repeat the last operation by pressing '.'. I know but can't imagine a use case for this. I actually want to master Vim, let me be sincere, just to look more cool and professional, impress the boss and feel more of a hacker but that's not enough of motivation for me and I'm desperate to find anything in it which would actually feel handy.