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 190 remaining solutions by signing in and submitting your own entry
#191 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

191 active golfers, 640 entries

Leaderboard (lowest score wins):
45
#181 - Will Gray / @graywh

03/14/2011 at 09:35PM

45
#182 - Johnny Tong / @johnnytong

03/25/2011 at 06:15AM

45
#183 - math is what I hate / @mpnmbn

03/13/2022 at 03:17PM

46
#184 - Golf Sinteppadon / @minigolf2000

05/02/2012 at 08:48PM

46
#185 - Nicolas Friedli / @NicolasFriedli

10/28/2012 at 02:46PM

47
#186 - Steve J at RF / @rfsteve

04/25/2011 at 06:53AM

53
#187 - Scott Atkins / @scottrick49

06/30/2021 at 01:07PM

54
#188 - Christian Oudard / @ChristianOudard

04/15/2011 at 03:21PM

67
#189 - retired account / @retired10072015

08/21/2012 at 08:08PM

72
#190 - Matt Donahoe / @mdonahoe

10/03/2011 at 06:38AM

91
#191 - Misha (Mike) Granin / @Granin

04/28/2011 at 01:14PM