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):
20
#91 - Brandon Blakeley / @zkelvin

11/26/2017 at 10:47PM

21
#92 - Artem Dudarev / @dudarev

02/05/2011 at 09:27AM

21
#93 - strager / @strager

12/12/2011 at 03:11AM

21
#94 - Walker Boh / @walker_boh

11/06/2015 at 09:31AM

22
#95 - vg / @vimgolfer

02/03/2011 at 01:41PM

22
#96 -  Ikhsan Maulana / @ixandidu

02/11/2011 at 02:29PM

22
#97 - Benjamin Sullivan / @benjaminsull

12/06/2011 at 05:31PM

22
#98 - Matt Walker / @_walkermatt

06/19/2012 at 12:31PM

22
#99 - Glen Huang / @heyhgl

10/19/2014 at 06:39AM

22
#100 - RockerZZY / @rocker_zzy

06/27/2020 at 01:33AM

23
#101 - Rob Ciaccio / @RobertoCalavera

02/10/2011 at 02:44PM

23
#102 - Dmitry G. Kuksinsky / @assert_false

04/27/2011 at 07:32PM

23
#103 - Dave / @zzdave13

07/18/2011 at 09:06PM

23
#104 - Andrey Andreev / @andro_a

07/29/2011 at 02:59PM

23
#105 - vansan / @VinceVansan

08/27/2012 at 09:03PM

23
#106 - G. Ahtune / @gahtune

11/04/2012 at 04:58AM

23
#107 - Runar / @runarfu

01/12/2013 at 09:26AM

23
#108 - Asmund / @herrasbe

01/13/2013 at 10:55AM

23
#109 - Justin / @justinjaffray

04/30/2013 at 08:22PM

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

07/16/2013 at 04:26AM

24
#111 - Sven Eigenbrodt / @rompetroll

02/07/2011 at 03:55PM

24
#112 - Jake / @jmantyla

03/15/2011 at 08:48PM

24
#113 - Mikael Gustavsson / @slvmnd

04/16/2011 at 04:54AM

24
#114 - Dmitry Teslenko / @krab_mozga

05/03/2011 at 01:28PM

24
#115 - Felipe Talavera / @flype

01/09/2012 at 01:19AM

24
#116 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 06:58PM

24
#117 - Bart of Denver / @bartofdenver

08/13/2013 at 04:17AM

24
#118 - ZorgroZ / @ZorgroZ

04/14/2014 at 09:37PM

24
#119 - luffy / @raxcoi

06/12/2015 at 05:10PM

24
#120 - Will / @obiwan__k3n00bi

09/17/2016 at 04:58PM