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
VimGolf.com - real Vim ninjas count every keystroke
41–50 of 86 posts
Re: VimGolf.com - real Vim ninjas count every keystroke
#42Re: VimGolf.com - real Vim ninjas count every keystroke
#43 :g/#/+1s/\v(.*)\n.*/\1\r\1Re: VimGolf.com - real Vim ninjas count every keystroke
#44Earlier quoted context omitted.
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
MVP meaning 'Most Valuable Player'?
Re: VimGolf.com - real Vim ninjas count every keystroke
#45Until somebody can come up with at least some method of restricting vim scripting, the results are useless(one can easily only use 4 key strokes by key mapping as you can see). But, on the other hand, you can't just disable vim from loading scripts, because there's no point in mastering the plain old vim without any plugins, custom key mappings and such.
I love this idea and love the challenge, but would love to make it less hackable as well.
Re: VimGolf.com - real Vim ninjas count every keystroke
#46Any tips on improving 'Sort and add attributes'? I have scored 38 with: :sor :%s/)/, :country => "USA")/
Re: VimGolf.com - real Vim ninjas count every keystroke
#47Hey! You demo'd this to me at Beer && Code a few weeks ago. Good to see this has come along!
Re: VimGolf.com - real Vim ninjas count every keystroke
#48 jd2jVjj=f(ci)*a^]jcfda.join(',')^]
but it wont generalize anywhere. Having a full script though that will detect and do that automagically, now there's the fun part.Re: VimGolf.com - real Vim ninjas count every keystroke
#49I had an idea for an emacs version of this. Anyone have any ideas on how you'd implement this with emacs?