Re:Vim: revisited
by cpeterso on Sunday December 11, 2011 @09:27PM
(#3341970)
I agree about accepting (most) standard key bindings, but here are two clever bindings I adopted:
[ Parent
| on HN ]
I used jj for a while as well, but once I found out that ctrl-C did the same thing out of the box, that became my "esc" key> (it's also important to remap caps lock to control, on the mac its easy: System Preferences->Keyboard->Keyboard->Modifier Keys)
Note: that isn't exactly the same--using Esc will trigger InsertLeave autocommands, Ctrl-C will not.
Re:Vim: revisited
by t-crayford on Monday December 12, 2011 @05:43AM
(#3343120)
imap <c-c> <esc>
Now it does.
As graywh says, ctrl-c is not the exact same as escape. If you want something standard which is, try ctrl-[. Harder to type, I know.
What about changing hjkl movements to jkl;?
I didn't try it yet... But hjkl bothers me.
My index belongs on j, for homerow touch typing, not h.
Wouldn't it be an improvement? Not having to move the hand for movements.
I must be missing something because everyone stays with hjkl.
The keys I use most are up/down. I tend to move between lines more often than I move between characters. This is true in any editor, but especially in vim, since I almost never move between individual characters, but rather use [w]ord movement commands, or [f] commands, etc.
That's why it makes sense that my strongest fingers are on the up/down motions, whereas to move to the left, a movement I never make, is off to the side.
Also, I wouldn't remap it for practical reasons - hjkl is a standard implemented in many places.
I did this for about two months before switching back to hjkl. There are two reasons why I switched back:
* I like using "Ctrl+Direction" to move around splits, and mapping Ctrl+; on a Mac doesn't work without some Keyremap4Macbook trickery. It's a pain to get working.
* Tons of other stuff uses Vim bindings, and you can't usually remap keys in most other programs.
Re:Vim: revisited
by t-crayford on Monday December 12, 2011 @05:41AM
(#3343113)
I'm much faster in vim since I gave up (for the most part) on hjkl (arrow keys are banned for obvious badness). / ? # * combined with f and t are so much faster. The only time I use j/k is 10j/10k for looking through files.
Hence, your question is somewhat misguided ;)
And what country is your keyboard from?
Unless you mean you specifically use search for every motion...?
Re:Vim: revisited
by t-crayford on Monday December 12, 2011 @11:22AM
(#3343933)
I use colemak now, but this holds true in qwerty as well (most of the time). I don't use search for EVERYTHING, just most of the time it's faster.
don't forget about:
let mapleader = ","
it remaps <leader> to ',' instead of '\'