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):
19
#61 - Trevor Powell / @DoomedBunnies

03/20/2013 at 11:23PM

19
#62 - LC / @leeren

08/10/2014 at 11:16PM

19
#63 - Michael Comerford / @MComerford1

09/26/2014 at 10:01AM

19
#64 - Andrii Maksai / @AMaksai

05/09/2016 at 10:20PM

19
#65 - ._. / @Katharsic

04/24/2022 at 05:13PM

20
#66 - Joost / @vlabakje

02/13/2011 at 03:51PM

20
#67 - Sergey Doroshenko / @dorserg

03/04/2011 at 03:43PM

20
#68 - Rocky Meza / @rockymeza

03/05/2011 at 07:17PM

20
#69 - Olof Hellquist / @quistoh

03/05/2011 at 11:06PM

20
#70 - Thom Hughes / @thom_hughes_1

03/26/2011 at 01:46AM

20
#71 - Jason Miller / @Aidenn0

04/13/2011 at 03:59PM

20
#72 - wusher / @wusher

05/31/2011 at 04:01AM

20
#73 - Sammasati / @sammasati0

07/16/2011 at 04:46AM

20
#74 - Robert Robotter / @robrob12

07/19/2011 at 12:28PM

20
#75 - Jesús Espino / @jespinog

09/07/2011 at 09:51AM

20
#76 - Christopher Erin / @MCNormalMode

09/27/2011 at 12:01AM

20
#77 - MaPo / @de2zotjes

10/02/2011 at 08:22AM

20
#78 - Andrei Litvin / @andy31416

11/17/2011 at 02:19AM

20
#79 - Maciej Suchecki / @mcSuchecki

12/04/2011 at 07:44PM

20
#80 - sol / @dichotomizer

12/19/2011 at 01:16PM

20
#81 - Vasil Sakarov / @vsakarov

01/15/2012 at 02:31PM

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

03/14/2012 at 10:14PM

20
#83 - Marcin Szamotulski / @me_coot

09/20/2012 at 03:01PM

20
#84 - Bradd Szonye / @bszonye

07/15/2013 at 05:43AM

20
#85 - Steve Tjoa / @stevetjoa

07/30/2013 at 06:21PM

20
#86 - NuM / @NuM314

10/06/2013 at 12:20AM

20
#87 - jimauthors / @jimauthors

02/18/2014 at 07:37AM

20
#88 - Joonas Pihlajamaa / @jokkebk

02/20/2014 at 08:39AM

20
#89 - Quota / @Quotad

04/04/2014 at 09:31AM

20
#90 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/10/2017 at 06:15PM