News for hackers. Stuff that matters.
Re:Intermediate Vim by dhotson on Wednesday May 01, 2019 @02:33AM (#19795021)
Hey all, I'm the author. Feedback is welcome! :)

The reason I wrote this is because I've been pair programming quite a bit lately and also mentoring some new vim users—so I wrote this little guide to help vim beginners level up their skills a bit.

What I noticed is that a lot of vim beginners find composing commands and text-objects to be kind of mind blowing.. and even more experienced vim users mentioned that these were the things that made them have that "aha" moment and convinced them to learn more.

Re:Intermediate Vim by jhoh on Wednesday May 01, 2019 @05:44AM (#19795712)
Great article! The features you showed were some of the ones I've had my first "Oh, now I get why vim is so great"-moments and that really boost your productivity.

> Tip: Generally after you’ve inserted some text, you want to return to command mode so that you’re ready to enter your next command. I’d recommend pressing esc any time you’ve finished typing.

Totally agree with this. What really helped me with getting this into my muscle memory was remapping Capslock to ESC which seems to be what many (most?) vim users do.

Re:Intermediate Vim by bingerman on Wednesday May 01, 2019 @07:20AM (#19796088)
Some of us even prefer mapping Capslock to both ESC and Control, as explained for example here (I'm not the author): https://www.dannyguo.com/blog/remap-caps-lock-to-escape-and-...
Re:Intermediate Vim by solarized on Wednesday May 01, 2019 @08:02AM (#19796292)
I'm the one who map escape to capslock. Since my capslock doesnt usefull at all !.
Re:Intermediate Vim by kchr on Tuesday May 07, 2019 @01:01PM (#19851291)
Wow. Thank you!
Re:Intermediate Vim by timrichard on Wednesday May 01, 2019 @05:55AM (#19795752)
Nice checklist...

I'm not quite convinced about this as general advice :

> If you’re like me and never learned to touch type properly, just use the arrow keys, it’s fine, don’t worry about it.

When I decided to go all-in on Vim keys some time ago (trying to find plugins for everything), it didn't take long to transition to hjkl. I think it's easier and more convenient to stay near the home row rather than moving my hand over for the arrows. I don't strictly touch type either.

Re:Intermediate Vim by fanpuns on Wednesday May 01, 2019 @07:14AM (#19796061)
Was going to comment the same. OP you must be a glutton for punishment if you can't touch type and are using vim
Re:Intermediate Vim by chapium on Wednesday May 01, 2019 @09:10AM (#19796678)
Agreed, vim is extra arcane if you avoid home row. If you don't use the home row much there are probably more suitable editors out there.
Re:Intermediate Vim by jakecopp on Wednesday May 01, 2019 @03:18AM (#19795155)
I think the concerns others have mentioned about the title/content level are valid, but even though I knew most of the commands I enjoyed reading this! I quite liked your writing style and page design.
Re:Intermediate Vim by chapium on Wednesday May 01, 2019 @09:08AM (#19796670)
Visual mode is a good next step after getting comfortable with b,w,e,h,j,k,l navigation.
Re:Intermediate Vim by mxschumacher on Wednesday May 01, 2019 @06:24AM (#19795852)
instead of "52gg" I prefer ":52"
Re:Intermediate Vim by opan on Wednesday May 01, 2019 @08:04AM (#19796305)
I prefer 52G. I guess it's not less keys since you're hitting shift, though.
Re:Intermediate Vim by contras1970 on Wednesday May 01, 2019 @07:32AM (#19796144)
expert vim

    :he
Re:Intermediate Vim by dmortin on Wednesday May 01, 2019 @03:40AM (#19795234)
> I've been pair programming quite a bit lately

Does it mean both party have to use the same editor? I wouldn't participate in a pair programmnig like that.

Pair programming is best when everyone can use one's favorite editor. When there is a pair switch there is also an editor switch if the other party prefers a different editor.