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):
31
#151 - okay zed / @okayzed

03/03/2011 at 01:54AM

31
#152 - Xavier Nayrac / @lkdjiin

01/08/2012 at 11:48AM

31
#153 - Ben Friedland / @bfriedland174

05/17/2012 at 08:23AM

31
#154 - Petri Rosenström / @wuzuuz

08/12/2012 at 02:23PM

32
#155 - bing_twic / @bing_twic

03/09/2011 at 07:59PM

32
#156 - Avinash Baliga / @avinashbaliga

03/26/2011 at 05:55AM

32
#157 - David Xia / @davidxia_

03/24/2012 at 01:24AM

32
#158 - Oliver Christ / @0liverChrist

10/03/2013 at 09:04PM

33
#159 - bestform / @bestform

02/05/2011 at 09:11PM

33
#160 - Vu Huan / @huanvn

04/12/2011 at 10:04AM

33
#161 - Nomen Nescio / @vadtusan

04/14/2011 at 10:05PM

33
#162 - Tesnorth / @Tesnorth

01/31/2012 at 12:14AM

33
#163 - James / @Dronak

09/12/2013 at 03:31PM

35
#164 - Mike Cooper / @mythmon

02/14/2011 at 09:46PM

35
#165 - tdirrenb / @tdirrenb

05/14/2011 at 07:19PM

35
#166 - Torben Rasmussen / @rasmustorben

08/12/2011 at 11:42PM

35
#167 - Jason Wolf / @zephyr_wolf

11/08/2012 at 05:41PM

35
#168 - Martin Liberg / @marreman

02/07/2015 at 06:43PM

36
#169 - Pavlo Klets / @p01nt

02/04/2011 at 10:43AM

37
#170 - rdt / @rdtft

02/08/2011 at 12:04PM

37
#171 - Tom Duijf / @tomduijf

02/12/2011 at 03:32PM

37
#172 - Andrew / @cobbal

08/22/2011 at 09:56AM

37
#173 - Burkhard Zimmermann / @BurkZimm

12/26/2011 at 05:39PM

40
#174 - R / @7vies

07/18/2011 at 12:52AM

40
#175 - Jurica / @Jurica34581259

12/11/2018 at 02:53PM

41
#176 - Alekseyka2 / @Alekseyka2

02/06/2011 at 05:53PM

42
#177 - タケ / @Take3832

05/14/2022 at 01:01AM

43
#178 - rappenstein2 / @rappenstein2

01/22/2022 at 02:07PM

44
#179 - Oliver Mader / @dotb52

07/17/2012 at 07:38AM

44
#180 - russellzhaomao / @russellzhaomao

05/29/2022 at 01:12PM