Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d4ab047795d626036000034

imports alignment (python)

Align as one import per line.

Start file
from random import randint, uniform, shuffle, sample
from math import ceil, pow
End file
from random import randint
from random import uniform
from random import shuffle
from random import sample
from math import ceil
from math import pow

View Diff

1,2c1,6
< from random import randint, uniform, shuffle, sample
< from math import ceil, pow
---
> from random import randint
> from random import uniform
> from random import shuffle
> from random import sample
> from math import ceil
> from math import pow

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 197 remaining solutions by signing in and submitting your own entry
#198 Misha (Mike) Granin / @Granin - Score: 91 - 04/28/11 @ 13:14
v3wy"+<CR>Mac OS X clipboard sharing<Up>uu<Esc>u<Left>vwww"*y:%s/, /\rfrom random import r<BS>/g<CR>wcwmath<Esc>:wq<CR>

0 comments


Created by: @vimgolfer

198 active golfers, 700 entries

Leaderboard (lowest score wins):
17
#1 - Tim Chase / @gumnos

02/03/2011 at 02:19PM

17
#2 - iCross / @iCrossOfficial

02/03/2011 at 02:20PM

17
#3 - xhtmlforum / @xhtmlforum

02/03/2011 at 02:34PM

17
#4 - h_east (トロッコ6個) / @h_east

02/03/2011 at 03:22PM

17
#5 - Steve Morrow / @yawmark

02/03/2011 at 05:16PM

17
#6 - Pete Johns / @johnsyweb

02/03/2011 at 09:06PM

17
#7 - Balkoth / @_Balkoth_

02/03/2011 at 09:25PM

17
#8 - Federico Galassi / @federicogalassi

02/03/2011 at 10:00PM

17
#9 - Antony Scriven / @antonyscriven

02/04/2011 at 05:42AM

17
#10 - Oleg Roshupkin / @jjjahson

02/04/2011 at 06:36AM

17
#11 - Wei Dai / @clvv42

02/04/2011 at 07:27AM

17
#12 - Roy Marco Aruta / @royaruta

02/20/2011 at 01:47PM

17
#13 - Dezső Zoltán / @zakiazigazi

02/24/2011 at 02:41PM

17
#14 - xaizek / @xaizek

02/26/2011 at 11:24AM

17
#15 - Paweu1kZ nbNeyIhH / @yUQlwsFpRSzxJFh

03/20/2011 at 06:05AM

17
#16 - Dragan Cvetinovic / @kawkafi

04/19/2011 at 05:27PM

17
#17 - Jean-Rene David / @jeanrenedavid

05/12/2011 at 03:13AM

17
#18 - Emile Swarts / @EmileSwarts

06/18/2011 at 03:45PM

17
#19 - not so punk :] / @notsopunk

06/19/2011 at 08:23AM

17
#20 - Johan Sveholm / @rymdtjuren

06/24/2011 at 09:41AM

17
#21 - Junfeng / @junfeng

08/02/2011 at 10:43AM

17
#22 - Theodore Finn Gast / @tfgast

09/01/2011 at 06:50AM

17
#23 - Justin Love / @wondible

09/07/2011 at 02:09PM

17
#24 - vimja / @vimja666

10/30/2011 at 07:45PM

17
#25 - You-Siang Lin / @yslinnctu

11/30/2011 at 05:13AM

17
#26 - Song Zheng / @songz

01/20/2012 at 09:51PM

17
#27 - Renat Aksitov / @Korvin79

02/08/2012 at 10:31PM

17
#28 - Rändöm Tester / @mevcar

02/12/2012 at 03:31PM

17
#29 - Aaron Lake / @aaronmlake

02/28/2012 at 07:08PM

17
#30 - Jomo / @yoyoyojomo

03/14/2012 at 06:14PM