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):
24
#121 - Bart of Denver / @bartofdenver

08/13/2013 at 04:17AM

24
#122 - ZorgroZ / @ZorgroZ

04/14/2014 at 09:37PM

24
#123 - luffy / @raxcoi

06/12/2015 at 05:10PM

24
#124 - Will / @obiwan__k3n00bi

09/17/2016 at 04:58PM

24
#125 - qed / @qed13308565

07/26/2018 at 02:43AM

25
#126 - Jacob Vosmaer / @jacobvosmaer

06/04/2012 at 08:12PM

25
#127 - Skúli Jóhannsson / @skulibj

06/28/2015 at 08:56PM

26
#128 - Thomas Schönwälder / @Masei1988

02/04/2011 at 07:34PM

26
#129 - Kevin Hamer / @khamer

02/04/2011 at 09:11PM

26
#130 - Yannis Chatzimichos / @feedward

07/06/2011 at 05:17PM

26
#131 - Daniel Lundin / @danielundin

12/26/2011 at 11:34PM

26
#132 - Gurukandhamoorthi / @Gurukandhamoor1

07/24/2017 at 04:01PM

26
#133 - shahanavaz m / @shahanavazm

02/20/2022 at 02:42AM

27
#134 - Mark Smith-Guerrero / @msmithgu

02/10/2011 at 10:22PM

27
#135 - Nicola Paolucci / @durdn

02/25/2011 at 08:03PM

27
#136 - Eivind Jahren / @HaskellElephant

03/23/2011 at 10:28PM

27
#137 - cj / @cj01101

08/21/2013 at 03:58AM

27
#138 - brett / @brettyukich

09/22/2013 at 09:21PM

27
#139 - Tyler / @tylerbindon

10/23/2013 at 03:23AM

27
#140 - we’re going to need a bigger bot / @assaflavie

04/28/2015 at 06:21PM

27
#141 - KoroneListener / @KoroneListener

09/04/2024 at 10:58AM

28
#142 - Zak Johnson / @zakj

04/21/2011 at 03:01AM

28
#143 - spriggo / @spriggo

05/01/2011 at 05:32AM

28
#144 - じょんあば / @john_ababa

02/27/2012 at 08:21AM

28
#145 - DHM / @DHM29978992

05/01/2018 at 02:08AM

29
#146 - Ash Searle / @hexmen

03/13/2011 at 05:56PM

29
#147 - Martin Desrosiers / @mdesrosiers

02/21/2012 at 06:57AM

29
#148 - David Goonja / @davidgoonja

08/10/2013 at 05:42AM

30
#149 - Matthieu Honel / @ocus

02/03/2011 at 10:06PM

30
#150 - Toto l'haricot / @nico_le_terribl

02/05/2011 at 01:10PM