News for hackers. Stuff that matters.
Re:Vim for Humans by ifoundthetao on Monday October 17, 2016 @11:23AM (#12725794)
Vim is very easy, I think it's just simple to get overwhelmed with it.

There are a couple of tools which gamify Vim. I personally haven't used them. But some say they're pretty good.

For me, what worked was just jumping in and going whole hog. I tried disabling the arrow keys in Normal Mode, so I would have to use hjkl for navigation. But my keyboard puts the arrow keys in easy reach (Kinesis Advantage), so it turned out not to be much of a need.

What you may like is turning on relative line numbers. That way you can visually see what line you're at, and how many lines away your target is that want to jump to. Then you can practice going 5k to go up five lines, or d2j, to from where you are to two lines down.

This article was actually eye-opening for me: https://yanpritzker.com/learn-to-speak-vim-verbs-nouns-and-m...

Maybe it'll help you too.

:wq

Re:Vim for Humans by bgribble on Monday October 17, 2016 @04:56PM (#12729658)
I wrote a shell toy to help me learn vim motions.. the idea is you can grab parts of the output of previous shell commands by passing vim motions. So like when you want to say "git checkout <that branch mentioned 5 lines up in the previous command's output>" you can do it :)

  git checkout $(lw 5kyiW)
It's more of a toy than a power tool but I do use it somewhat regularly.

https://github.com/bgribble/lw

Re:Vim for Humans by amboar on Monday October 17, 2016 @05:26PM (#12729928)
For bash or any other application using the readline library you can configure it for vi mode by adding 'set editing-mode vi' to your ~/.inputrc. Note for bash you can instead add 'set -o vi' to ~/.bashrc to avoid setting the mode for all readline applications
Re:Vim for Humans by ifoundthetao on Monday October 17, 2016 @05:16PM (#12729853)
Interesting, you may be interested in vi mode in bash.

http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-shee...

Re:Vim for Humans by jon_richards on Monday October 17, 2016 @01:34PM (#12727176)
Why do people not like :x ?
Re:Vim for Humans by travv0 on Monday October 17, 2016 @01:45PM (#12727293)
:wq is a natural extension of :w, and half the time I haven't even decided to quit Vim until I've already typed the :w.
Re:Vim for Humans by jedberg on Monday October 17, 2016 @03:00PM (#12728148)
It's an extra thing to remember. When I'm coding I usually just do :w, so when I'm editing config files I do :wq because it's the same thing (write the file) plus a new action (quit) in my head, instead of a totally different action (save and quit)
Re:Vim for Humans by chongli on Monday October 17, 2016 @06:28PM (#12730382)
There's also ZZ which I find easiest of all.