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):
30
#151 - ajh / @AlexJHammel

12/23/2012 at 02:58PM

30
#152 - かしゅーなっつ@修行中 / @kashew_nuts

08/02/2014 at 07:53AM

30
#153 - Justin Knag / @justinknag

09/16/2014 at 06:07AM

30
#154 - ltn614 / @ltn614

09/24/2015 at 09:49AM

30
#155 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 05:03PM

31
#156 - okay zed / @okayzed

03/03/2011 at 01:54AM

31
#157 - Xavier Nayrac / @lkdjiin

01/08/2012 at 11:48AM

31
#158 - Ben Friedland / @bfriedland174

05/17/2012 at 08:23AM

31
#159 - Petri Rosenström / @wuzuuz

08/12/2012 at 02:23PM

32
#160 - bing_twic / @bing_twic

03/09/2011 at 07:59PM

32
#161 - Avinash Baliga / @avinashbaliga

03/26/2011 at 05:55AM

32
#162 - David Xia / @davidxia_

03/24/2012 at 01:24AM

32
#163 - Oliver Christ / @0liverChrist

10/03/2013 at 09:04PM

33
#164 - bestform / @bestform

02/05/2011 at 09:11PM

33
#165 - Vu Huan / @huanvn

04/12/2011 at 10:04AM

33
#166 - Nomen Nescio / @vadtusan

04/14/2011 at 10:05PM

33
#167 - Tesnorth / @Tesnorth

01/31/2012 at 12:14AM

33
#168 - James / @Dronak

09/12/2013 at 03:31PM

35
#169 - Mike Cooper / @mythmon

02/14/2011 at 09:46PM

35
#170 - tdirrenb / @tdirrenb

05/14/2011 at 07:19PM

35
#171 - Torben Rasmussen / @rasmustorben

08/12/2011 at 11:42PM

35
#172 - Jason Wolf / @zephyr_wolf

11/08/2012 at 05:41PM

35
#173 - Martin Liberg / @marreman

02/07/2015 at 06:43PM

36
#174 - Pavlo Klets / @p01nt

02/04/2011 at 10:43AM

37
#175 - rdt / @rdtft

02/08/2011 at 12:04PM

37
#176 - Tom Duijf / @tomduijf

02/12/2011 at 03:32PM

37
#177 - Andrew / @cobbal

08/22/2011 at 09:56AM

37
#178 - Burkhard Zimmermann / @BurkZimm

12/26/2011 at 05:39PM

40
#179 - R / @7vies

07/18/2011 at 12:52AM

40
#180 - Jurica / @Jurica34581259

12/11/2018 at 02:53PM