Live data from Hacker News

Vim Croquet

drbunsen.org

11–20 of 56 posts

Re: Vim Croquet

#11
post #5

ggvG$"zy can be replaced with ggVG"zy 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).

If I can recall the file name, :r might be a better choice than gg...y

Re: Vim Croquet

#12
post #4

Earlier quoted context omitted.

Judging from his discussion of cib in the Data Acquisition section, it seems like he's familiar with it.

Perhaps familiar, but not ingrained in his muscle memory to used instead of d i.

To be fair, I'll often do that as well, but just looking at the keys misses that there's a pause between the d and the i. I don't like sitting in insert mode, so if I don't know what I'm going to replace a thing with, I'd rather delete it, then insert something else after I've figured it out.

Re: Vim Croquet

#13
post #7
post #6

This guy should definitely start using caps lock as control.

If you read more closely, he mentions that he uses a Kinesis Advantage where his control key is quite convenient. The heatmap is just plotted on a standard keyboard.

http://www.drbunsen.org/an-affray-with-rsi/

his end key is escape. on his keyboard i think it translates to being on a thumb

Re: Vim Croquet

#14
Even if not related to it and my get some downvoted for saying this. Something that strike me in this post is how cooler haskell code looks vs python.

Re: Vim Croquet

#15
post #14

Even if not related to it and my get some downvoted for saying this. Something that strike me in this post is how cooler haskell code looks vs python.

For values of "cool" meaning "undecipherable", sure.

Re: Vim Croquet

#16
This is very cool. Can anyone point me in the general direction of how to implement this on my machine? I understand logging keystrokes in Vim, but I'm not sure how to use the source code given for the lexer, or that given for the Makefile.

Re: Vim Croquet

#17
post #5

ggvG$"zy can be replaced with ggVG"zy 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).

Better still, I'll recommend @kana's vim-textobj-entire[1]. This adds 'e' as an 'everything' text object, with 'ae' (around everything) and 'ie' (inside everything) bindings by default. Thus 'vie' would select everything in the buffer in visual mode. Likewise for 'Vie' (Visual line select) or 'cie' (change everything).

[1] https://github.com/kana/vim-textobj-entire

Re: Vim Croquet

#19
post #14

Even if not related to it and my get some downvoted for saying this. Something that strike me in this post is how cooler haskell code looks vs python.

For values of "cool" meaning "undecipherable", sure.

This is a common misconception. Haskell is extremely readable. You just have to learn it.

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.

Re: Vim Croquet

#20

Earlier quoted context omitted.

For values of "cool" meaning "undecipherable", sure.

This is a common misconception. Haskell is extremely readable. You just have to learn it. 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.

The "joke" was that Haskell looks very different from most popular programming languages, and that folks who think it "looks cooler than Python" are likely reacting to its indecipherability combined with the fact that it's clearly doing something interesting.

At least Python programmers have a sense of humor.

Post reply on HN