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):
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

17
#48 - Qing Liu / @poeminlash

08/07/2022 at 05:46AM

17
#49 - Peppa Pig / @PeppaPigSg

06/02/2024 at 07:17AM

17
#50 - nickGPT / @nickandbro

08/28/2024 at 10:58PM

18
#51 - Ibrahim Tencer / @ibrahimtencer

02/12/2012 at 06:59PM

18
#52 - William Dunand / @wdunand

03/02/2012 at 08:42AM

18
#53 - Rich Cheng / @sedm0784

09/10/2018 at 03:45PM

18
#54 - Lory / @Lory46845742

12/10/2019 at 08:52AM

18
#55 - Michel Viktor / @tomkpz

08/08/2021 at 10:05PM

18
#56 - Jean George / @JeanGeo20504212

03/28/2022 at 08:38AM

18
#57 - Janzen / @__Coos

09/22/2022 at 02:28PM

19
#58 - aaaa3331 / @aaaa3331

02/07/2011 at 09:46PM

19
#59 - Øystein Walle / @oysteinwalle

07/07/2011 at 12:35PM

19
#60 - Pei-Lun Lee / @ypcatw

01/19/2012 at 11:32AM