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):
19
#61 - Kurt Gaastra / @KGaastra

02/16/2012 at 04:40AM

19
#62 - Garry Shutler / @gshutler

03/31/2012 at 01:24PM

19
#63 - Kerson Hsiao / @KersonHsiao

07/03/2012 at 07:52AM

19
#64 - Yann Moisan / @YannMoisan

01/25/2013 at 10:08PM

19
#65 - Trevor Powell / @DoomedBunnies

03/20/2013 at 11:23PM

19
#66 - LC / @leeren

08/10/2014 at 11:16PM

19
#67 - Michael Comerford / @MComerford1

09/26/2014 at 10:01AM

19
#68 - Andrii Maksai / @AMaksai

05/09/2016 at 10:20PM

19
#69 - ._. / @Katharsic

04/24/2022 at 05:13PM

20
#70 - Joost / @vlabakje

02/13/2011 at 03:51PM

20
#71 - Sergey Doroshenko / @dorserg

03/04/2011 at 03:43PM

20
#72 - Rocky Meza / @rockymeza

03/05/2011 at 07:17PM

20
#73 - Olof Hellquist / @quistoh

03/05/2011 at 11:06PM

20
#74 - Thom Hughes / @thom_hughes_1

03/26/2011 at 01:46AM

20
#75 - Jason Miller / @Aidenn0

04/13/2011 at 03:59PM

20
#76 - wusher / @wusher

05/31/2011 at 04:01AM

20
#77 - Sammasati / @sammasati0

07/16/2011 at 04:46AM

20
#78 - Robert Robotter / @robrob12

07/19/2011 at 12:28PM

20
#79 - Jesús Espino / @jespinog

09/07/2011 at 09:51AM

20
#80 - Christopher Erin / @MCNormalMode

09/27/2011 at 12:01AM

20
#81 - MaPo / @de2zotjes

10/02/2011 at 08:22AM

20
#82 - Andrei Litvin / @andy31416

11/17/2011 at 02:19AM

20
#83 - Maciej Suchecki / @mcSuchecki

12/04/2011 at 07:44PM

20
#84 - sol / @dichotomizer

12/19/2011 at 01:16PM

20
#85 - Vasil Sakarov / @vsakarov

01/15/2012 at 02:31PM

20
#86 - Michał Wróbel / @sparrovv_

03/14/2012 at 10:14PM

20
#87 - Marcin Szamotulski / @me_coot

09/20/2012 at 03:01PM

20
#88 - Bradd Szonye / @bszonye

07/15/2013 at 05:43AM

20
#89 - Steve Tjoa / @stevetjoa

07/30/2013 at 06:21PM

20
#90 - NuM / @NuM314

10/06/2013 at 12:20AM