News for hackers. Stuff that matters.
Re:Why was '~' chosen to represent the home directory? by ximeng on Monday January 21, 2013 @02:51AM (#5090421)
h and l are obvious for left and right as they're on the left and right. Lower case j goes below the baseline, so down, k is solid at the top so up.
Re:Why was '~' chosen to represent the home directory? by tome on Monday January 21, 2013 @02:52AM (#5090425)
Another question: why shift your right hand one place to the left from its normal position on the home row?
Re:Why was '~' chosen to represent the home directory? by vacri on Monday January 21, 2013 @03:17AM (#5090495)
The first answer in the OP gives a pictorial reference for this.
Re:Why was '~' chosen to represent the home directory? by evincarofautumn on Monday January 21, 2013 @03:00AM (#5090459)
I would prefer JKL; to HJKL because my index finger typically rests on the J. Then again, I am an Emacs user, so what do I know?
Re:Why was '~' chosen to represent the home directory? by jcl on Monday January 21, 2013 @03:41PM (#5093637)
As you get more experienced in vim, you learn more powerful ways to jump around horizontally on a line (t/T/f/F, word navigation, incremental search, etc.), so the most common granular cursor movements become down and up -- which conveniently map to the home-row keys under the strongest and second-strongest fingers.
Re:Why was '~' chosen to represent the home directory? by evincarofautumn on Monday January 21, 2013 @04:19PM (#5093814)
Right, that makes sense. In Emacs I generally use C-n (next-line) and C-p (previous-line), but for horizontal movement it’s usually thing like M-b (backward-word) and M-f (forward-word), or C-s (isearch-forward) and C-r (isearch-backward). Emacs isn’t really as good at raw text editing as vim, but clearly there is a lot more to Emacs than raw text editing.
Re:Why was '~' chosen to represent the home directory? by Osiris on Monday January 21, 2013 @03:25AM (#5090517)
This is exactly why I don't use HJKL for navigation in vim. Shifting my fingers causes me to mis-type all the other commands. I end up just using arrows or word navigation.