His 3rd most used command is jj. This is popular among some vim users to be remapped as Esc in insert mode (:inoremap jj <Esc>).
I do not personally use this but when writing this comment, I quickly tested it out and it actually feels quite comfortable.
I re-map my caps lock as Escape. It works suprisingly well even outside of Vim.
`Mihere's some text^Cyyp$bimore ^C0~A.^C:w^M:q
[…]> The lexer correctly determined that I started in normal mode by navigating to a specific buffer using the `M mark, then typed here's some text in insert mode, then[…]
Probably some low-hanging fruit would be "any keystroke in Normal mode that's repeated." Eg, if I'm doing 'jjjj' to move down or even 'wwww' to hop from word to word, I could be searching or using a movement combo like '4j'.
Or, and this is a wild one, grab the mouse and click the point where you want the cursor, rather than giving some sort of treasure map to Vim: "Starting at the typedef, take 5 steps right, then 10 steps down, and 2 more steps right"
It numbers your current line as 0, and counts up and down from there. It makes it very easy to see that you need to delete the next 5 lines, or move up 10 lines without doing any math.
As for your mouse comment, I don't think you can compare the speed with which an experienced vim user gets their cursor where they want it to the catastrophic cache miss of removing your hand from the comfort of the home row, grabbing the mouse, moving it where you want, clicking it, and moving your hand back to the keyboard. The mere thought makes me shudder :)
Visual line mode is often very convenient.
Also, kana's text-object-entire plugin may come in handy here (many of her text-object plugins are very useful).
gg"zyG(disclaimer: that probably isn't actual Haskell syntax.)
Python reads like pseudo-code where as Haskell reads like math. Both are readable, they are just different.
I suspect it's easier to teach someone Haskell if they have never done imperative programming before because they have a lot less hang ups.
It works just like d, except it puts you in insert mode after you've completed your command.
For example, to replace the text within a set of quotation marks with You don't like Vim?, move your cursor on or within those quotation marks and use:
ci"You don't like Vim?<esc>
To replace the text up to (but not including) the next exclamation point with I would never drink orange juice, use: ct!I would never drink orange juice<esc>
EDIT: Gah. He explicitly mentioned his use of cib. I'll leave this here in case it helps anyone.his end key is escape. on his keyboard i think it translates to being on a thumb