News for hackers. Stuff that matters.
Re:WAT Driven Development by jes5199 on Wednesday March 14, 2012 @02:26PM (#3704586)
The ESC key in vi is idempotent. It's not doing it wrong to hit it thousands of times. It's doing it wrong to have to model the state of your editor in your head.

I have a similar habit of typing "git " in my terminal, and then getting distracted while I think through what I'm trying to do, and then just typing "git " again. Rather than punish myself, I just wrote a script called git-git. https://github.com/jes5199/git-git so I can type "git git git push" and it works.

Re:WAT Driven Development by nullmodem on Wednesday March 14, 2012 @04:02PM (#3705084)
You can also achieve the same effect by placing the following in your .gitconfig:

    [alias]
        git = !git
Re:WAT Driven Development by ramblerman on Thursday March 15, 2012 @05:34AM (#3707570)
" It's doing it wrong to have to model the state of your editor in your head "

WAT? By that logic you don't know if you are in insert mode half the time, and start typing random characters all over the place.

Re:WAT Driven Development by jes5199 on Friday March 16, 2012 @12:50AM (#3712019)
Never stay in insert mode unless you are typing! Insert mode is a brief experience. itype type type<esc>
Re:WAT Driven Development by jasonwatkinspdx on Wednesday March 14, 2012 @08:52PM (#3706222)
"It's ... wrong to have to model the state of your editor in your head."

from the mouth of a vi user...