Live data from Hacker News

VimGolf.com - real Vim ninjas count every keystroke

vimgolf.com

11–20 of 86 posts

Re: VimGolf.com - real Vim ninjas count every keystroke

#11
post #2

Where are the solutions? That's the fun thing about Perl golf is seeing how people did it in X characters. Without solutions...well, I don't see the point.

I'm logging the solutions, but in real MVP fashion... not showing them just yet. Need to bootstrap a vimscript parser first. If anyone is up for it, would love some help with the client/parser: https://github.com/igrigorik/vimgolf

I will take part in this when the solutions are displayed. All the fun is in the solutions. So for me, hiding them kills the whole point of the project. Otherwise it would be lots of fun. Im a long time vim user and love it.

Re: VimGolf.com - real Vim ninjas count every keystroke

#16
post #9

Lets see, for the simple text editing: qa/vim yypjddq@a@a so 18.

qa/v yypjddq@a@a 16 :P

If this contest also rated by finger distance (one of vim's strengths), I'd propose qq and @q@@ instead of using the "a" register.

Re: VimGolf.com - real Vim ninjas count every keystroke

#17
post #9

Lets see, for the simple text editing: qa/vim yypjddq@a@a so 18.

Yeah, how does this prevent somebody from making a macro that does the entire file, then "completing" the file with the two* keystrokes it takes to fire off that macro?

Or one, mapping space to @q is convenient :)

Re: VimGolf.com - real Vim ninjas count every keystroke

#19
post #10

Ugh.. wanted to play with it, but after three years, there still isn't a simple way to get Ruby and Gems working nicely with modern Ruby apps on OSX. Searching for ways to update show a variety of hacks, each uglier than the last. Of course, I could always build it from source.. ::sigh::

Not sure what you mean, as the vast majority of Ruby developers I know use OS X. Ruby works out of the box on Snow Leopard. Or try Homebrew. Or RVM.

I'm running an MBP received a clean install of the first Snow Leopard release and has subsequently gone through the normal system updates. On this system, and the previous one that was running 10.5, I've never managed to get RubyGems updated successfully.. hence, when I try to gem install vimgolf, it tells me that I need rubygems >=1.3.6. I guess I'm just failing as a hacker and missing something obvious. Grr.

Well, I just discovered that I had two different conflicting gem home dirs. was able to set GEM_HOME and do "gem cleanup" and things seem to be a bit better now. Yay!

Post reply on HN