Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Learn Vim for the Last Time (danielmiessler.com)
4 points by dsego on Nov 22, 2021 | hide | past | favorite | 1 comment


Here are my thoughts on this article:

>This will make it so that you can type jk instead of pressing ESC, which is much easier since they're home keys!

And now enjoy the frustration you'll feel every time you need to type 'jk'.

>t: searches for something and stops before it >f: searches for that thing and lands on it

'unTil' and 'Find' are mnemonics that help me to remember the correct usage.

>*: search for other instances of the word under your cursor

There is also '#', but now 'n' and 'N' will be "switched around".

>Ctrl-i: jump to your previous navigation location >Ctrl-o: jump back to where you were

I would suggest map <C-i> to <TAB> and <C-o> to <S-TAB>. This makes navigation easier.

>dd: delete the current line

Don't forget these commands (dd, cc, yy, D, C) are shortcuts and don't match to the 'language' model. Also, 'Y' doesn't work.

>Based on the type of file you're in, you might have some line drama.

':set list' can be useful in these situations.

>^B: move up a page >Ctrl-i: jump to your previous navigation location

Inconsistent use of syntax can cause a lot of head-scratching for new users.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: