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 571808767dd9d30009000001

Align commas

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

Start file
just = make,
       all,
       the,
       commas,
       line,
       up
End file
just = make  ,
       all   ,
       the   ,
       commas,
       line  ,
       up

View Diff

Hope you're all doing well. Goal is 11.

Tweet me a shoutout if you read View Diff.

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 246 remaining solutions by signing in and submitting your own entry
#247 Jon Barson / @jbarson - Score: 77 - 04/22/16 @ 19:10
<Esc>:%s/,/<Tab>,/g<CR><Esc>:<Esc><Up><Right><Right><Right><Right><Right><Right>x<Up>x<Up>x<Up>xuuuuuuuuuuu<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i  <Left><Left><Left><Down>   <Left><Left><Left><Down>   <Down><Left><Down><Left>  <Esc>ZZ

0 comments


Created by: @udioica

247 active golfers, 1097 entries

Leaderboard (lowest score wins):
15
#121 - Bill Ruddock / @biinari

10/31/2016 at 03:03AM

15
#122 - timerella® / @timerella

11/17/2016 at 10:08PM

15
#123 - Ryan Marcotte / @ryanjmarcotte

11/23/2016 at 10:56PM

15
#124 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 03:45PM

15
#125 - Fichera Gaetano / @gaetanofic

04/11/2018 at 02:59PM

15
#126 - fucus / @fishlovebanana

08/25/2018 at 02:07PM

15
#127 - vg / @vg53210350

10/28/2018 at 08:48PM

15
#128 - Jason Neylon / @jasonneylon

03/30/2020 at 07:34PM

16
#129 - Victor Haffreingue / @nobe_4

04/21/2016 at 05:59AM

16
#130 - Sebastián Mancilla / @smancill_m

05/06/2016 at 11:27PM

16
#131 - Jacob Niehus / @wilywampa

06/20/2016 at 02:44AM

16
#132 - Ben Baker-Smith / @Bit_Synthesis

07/17/2016 at 06:07AM

16
#133 - John Barbero Unenge / @JBarberU

10/19/2016 at 12:53PM

16
#134 - Etienne Florent / @EtienneFlorent

11/23/2016 at 01:10PM

16
#135 - Hans Yelek / @hans_yelek

01/11/2017 at 05:56AM

16
#136 - Daniel / @Daniel00288663

03/21/2017 at 04:55PM

16
#137 - Chicuella / @chicuellahere

06/06/2017 at 10:40AM

16
#138 - Carl Egbert / @CarlOEgbert

06/11/2017 at 09:03PM

16
#139 - PCS Solutions / @PeteSolutions

08/15/2018 at 11:19PM

16
#140 - d8d90d / @d8d90d

08/19/2018 at 12:01AM

16
#141 - PJ Frazer / @pj_frazer

11/23/2018 at 09:47PM

16
#142 - Mateen Ulhaq / @sicariusnoctis

02/17/2019 at 12:07AM

16
#143 - Ariel Miculas / @ArielMiculas

09/25/2019 at 04:40PM

16
#144 - Jason / @roosjason

06/09/2020 at 09:25AM

16
#145 - Brian Phelps / @dranzigd

09/12/2024 at 03:43PM

17
#146 - Louis Caruana / @louiecaruana

04/21/2016 at 03:17AM

17
#147 - we’re going to need a bigger bot / @assaflavie

04/21/2016 at 05:35AM

17
#148 - Cristian Lupașcu / @clupasq

04/21/2016 at 07:45AM

17
#149 - Knoppi Brunzmann / @superknoppi

04/21/2016 at 09:14AM

17
#150 - glepha / @glepha_vim

04/21/2016 at 09:47AM