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):
20
#91 - jimauthors / @jimauthors

02/18/2014 at 07:37AM

20
#92 - Joonas Pihlajamaa / @jokkebk

02/20/2014 at 08:39AM

20
#93 - Quota / @Quotad

04/04/2014 at 09:31AM

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

07/10/2017 at 06:15PM

20
#95 - Brandon Blakeley / @zkelvin

11/26/2017 at 10:47PM

21
#96 - Artem Dudarev / @dudarev

02/05/2011 at 09:27AM

21
#97 - strager / @strager

12/12/2011 at 03:11AM

21
#98 - Walker Boh / @walker_boh

11/06/2015 at 09:31AM

22
#99 - vg / @vimgolfer

02/03/2011 at 01:41PM

22
#100 -  Ikhsan Maulana / @ixandidu

02/11/2011 at 02:29PM

22
#101 - Benjamin Sullivan / @benjaminsull

12/06/2011 at 05:31PM

22
#102 - Matt Walker / @_walkermatt

06/19/2012 at 12:31PM

22
#103 - Glen Huang / @hihgl

10/19/2014 at 06:39AM

22
#104 - RockerZZY / @rocker_zzy

06/27/2020 at 01:33AM

23
#105 - Rob Ciaccio / @RobertoCalavera

02/10/2011 at 02:44PM

23
#106 - Dmitry G. Kuksinsky / @assert_false

04/27/2011 at 07:32PM

23
#107 - Dave / @zzdave13

07/18/2011 at 09:06PM

23
#108 - Andrey Andreev / @andro_a

07/29/2011 at 02:59PM

23
#109 - vansan / @VinceVansan

08/27/2012 at 09:03PM

23
#110 - G. Ahtune / @gahtune

11/04/2012 at 04:58AM

23
#111 - Runar / @runarfu

01/12/2013 at 09:26AM

23
#112 - Asmund / @herrasbe

01/13/2013 at 10:55AM

23
#113 - Justin / @justinjaffray

04/30/2013 at 08:22PM

23
#114 - Woojung Kim 김우중 / @_kimwz

07/16/2013 at 04:26AM

24
#115 - Sven Eigenbrodt / @rompetroll

02/07/2011 at 03:55PM

24
#116 - Jake / @jmantyla

03/15/2011 at 08:48PM

24
#117 - Mikael Gustavsson / @slvmnd

04/16/2011 at 04:54AM

24
#118 - Dmitry Teslenko / @krab_mozga

05/03/2011 at 01:28PM

24
#119 - Felipe Talavera / @flype

01/09/2012 at 01:19AM

24
#120 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 06:58PM