Live data from Hacker News

Vim Croquet

drbunsen.org

1–10 of 56 posts

Re: Vim Croquet

#2
The keyboard heatmap code is nifty enough to justify this being on the front page of HN all by itself, which is not to say the rest is without value -- quite the converse; I hadn't thought of doing this sort of usage analysis with Emacs, but I think that's going to be my next weekend project once I'm done updating weatherline-mode.

Re: Vim Croquet

#3
Judging by the heatmap, it appears the author isn't familiar with Vim's c verb.

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?
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
EDIT: Gah. He explicitly mentioned his use of cib. I'll leave this here in case it helps anyone.

Re: Vim Croquet

#4
post #3

Judging by the heatmap, it appears the author isn't familiar with Vim's c verb. 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? To replace the text up to (but not including) the next exclamation poi…

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

Re: Vim Croquet

#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).

Re: Vim Croquet

#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.

Re: Vim Croquet

#8
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).

Or

    :%yz

Re: Vim Croquet

#9
post #8
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).

Or :%yz

Good call! But you'll need a space:

    :%y z

Re: Vim Croquet

#10
post #4
post #3

Judging by the heatmap, it appears the author isn't familiar with Vim's c verb. 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? To replace the text up to (but not including) the next exclamation poi…

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 di.
Post reply on HN