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):
17
#31 - Chris Penkett / @chrispenkett

04/03/2012 at 03:55PM

17
#32 - Urtica dioica / @udioica

05/31/2012 at 07:49AM

17
#33 - Victor Ramirez / @virako

10/16/2012 at 12:59AM

17
#34 - Marco Hinz / @_mhinz_

05/22/2013 at 10:35PM

17
#35 - Petro Тrouq / @zulolosi

08/30/2013 at 06:41PM

17
#36 - João Paiva / @jgpaiva

02/11/2014 at 11:10AM

17
#37 - John Braxler / @braxler

05/01/2014 at 02:15PM

17
#38 - kimber gonzalez / @kimberlycreates

02/05/2015 at 09:59PM

17
#39 - pftb12345 / @pftb12345

04/13/2015 at 11:58AM

17
#40 - Jon Krause / @jkrause314

01/28/2016 at 10:19PM

17
#41 - Miłosz Łakomy / @foobar01123

06/02/2016 at 08:07PM

17
#42 - Zhihong Liu / @pieapple03

03/25/2017 at 04:15AM

17
#43 - Daniel / @Daniel00288663

04/03/2017 at 12:47PM

17
#44 - Turkey Man / @lvturkeyman

11/26/2017 at 09:24AM

17
#45 - BarbaJol / @drpproteus

01/04/2018 at 01:45PM

17
#46 - Mihai / @mihaicristiant

02/23/2019 at 04:31PM

17
#47 - blabla zincou / @BZincou

03/23/2022 at 09:20PM

18
#48 - Ibrahim Tencer / @ibrahimtencer

02/12/2012 at 06:59PM

18
#49 - William Dunand / @wdunand

03/02/2012 at 08:42AM

18
#50 - Rich Cheng / @sedm0784

09/10/2018 at 03:45PM

18
#51 - Lory / @Lory46845742

12/10/2019 at 08:52AM

18
#52 - Michel Viktor / @tomkpz

08/08/2021 at 10:05PM

18
#53 - Jean George / @JeanGeo20504212

03/28/2022 at 08:38AM

19
#54 - aaaa3331 / @aaaa3331

02/07/2011 at 09:46PM

19
#55 - Øystein Walle / @oysteinwalle

07/07/2011 at 12:35PM

19
#56 - Pei-Lun Lee / @ypcatw

01/19/2012 at 11:32AM

19
#57 - Kurt Gaastra / @KGaastra

02/16/2012 at 04:40AM

19
#58 - Garry Shutler / @gshutler

03/31/2012 at 01:24PM

19
#59 - Kerson Hsiao / @KersonHsiao

07/03/2012 at 07:52AM

19
#60 - Yann Moisan / @YannMoisan

01/25/2013 at 10:08PM