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 5bed1691139d1c000cb0565d

simple format

make it look better.

Start file
one:1
two:2
three:3
four:4
five:5
six:6
seven:7
eight:8
nine:9
ten:10
End file
  "one":1
  "two":2
"three":3
 "four":4
 "five":5
  "six":6
"seven":7
"eight":8
 "nine":9
  "ten":10

View Diff

1,10c1,10
< one:1
< two:2
< three:3
< four:4
< five:5
< six:6
< seven:7
< eight:8
< nine:9
< ten:10
---
>   "one":1
>   "two":2
> "three":3
>  "four":4
>  "five":5
>   "six":6
> "seven":7
> "eight":8
>  "nine":9
>   "ten":10

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 493 remaining solutions by signing in and submitting your own entry
#494 Alex Standke / @xanderstrike - Score: 317 - 12/29/18 @ 00:30
:<BS>:%s/-w<BS><BS>\w*:\d*<Left><Left><Left><Left><Left><Left><Left>\(<Right><Right><Right>)<Right><Right><Left>(<End>)/:<BS>"\1":\2/g<CR>:<BS>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>\<Right><Right><Right><Right><Right><Right><CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS>.<CR>:<CR><Up><Up>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>\<CR>:<Esc>/\w.<BS>*<BS>:<Left>*<Right><Right>\d?<BS>&<BS>*<Left><Left><Left><Left><Left><Left><Left>\(<Right><Right>\)<Right><Right><Left><BS><Left><Left>*<End><Left><Left><Left>\(<End>)<BS>\)<Home><BS>:<BS><C-C>%:%s/\(\w*\):\(\d*\)/\1 \2<CR>u:<Up><Left><Left><Left><Left><Left>"<Right><Right>":<Del><Right><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><Right><Right><Right><Left>:<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Del><CR>  <Esc><Esc><Esc>kkkkkkkkkkkkhhi  <Esc>jh.jhj.xjhhi <Esc>ji  <Esc>jjjhi <Esc>ji  <BS><BS>  <Esc>:wq<CR>

0 comments


Created by: @zacoxi

494 active golfers, 2603 entries

Leaderboard (lowest score wins):
58
#421 - chenqiqi / @chenqiqi13

03/12/2019 at 02:15PM

58
#422 - rvnjsphdmn / @rvnjsphdmn

04/30/2019 at 02:22AM

58
#423 - Phoon / @justflashhim

05/10/2019 at 03:45PM

59
#424 - Mitch / @miffstarr

12/09/2018 at 07:07AM

59
#425 - Julius / @cShortForC

12/31/2018 at 12:13PM

59
#426 - Thomas Branch / @twighk

01/27/2019 at 12:52PM

59
#427 - Narwaro / @Narwaro

01/30/2019 at 04:27PM

60
#428 - Gilad Slonim / @SlonimGilad

01/01/2019 at 07:26PM

60
#429 - rg thomas / @rgt47

04/01/2019 at 01:59AM

61
#430 - Maas Lalani / @maaslalani

12/02/2018 at 04:48PM

61
#431 - Christophe Robillard / @krichtof

01/05/2019 at 02:41PM

61
#432 - magnostherobot / @magnostherobot

03/31/2019 at 08:05PM

61
#433 - edulim / @edulim2

05/16/2019 at 01:37AM

61
#434 - Andy Gnias / @GniTheSciGuy

06/24/2019 at 01:15AM

62
#435 - Jurica / @Jurica34581259

11/16/2018 at 11:13AM

62
#436 - Cristian / @cris_perez_b

11/16/2018 at 02:59PM

62
#437 - Ainsley McGrath / @whole_grainsley

12/21/2018 at 10:07PM

62
#438 - bokkii / @bokkii7

03/30/2019 at 04:18AM

63
#439 - Max Gittelman / @MaxGitt

12/09/2018 at 03:46AM

63
#440 - Vitaly Karpenko / @karpenko_vitaly

12/29/2018 at 12:53PM

63
#441 - jdw / @jdw76778810

01/23/2019 at 08:35AM

64
#442 - Kevin / @firedhippy

11/29/2018 at 03:22AM

64
#443 - Am Jam / @LoneJam

06/07/2019 at 12:52AM

65
#444 - 拉书单 / @NaapN2

03/19/2019 at 10:14AM

66
#445 - Mathieu Chataigner / @mchataigner

11/27/2018 at 02:03PM

66
#446 - 唐偉 / @tangw

11/30/2018 at 11:02PM

66
#447 - xiong yuwu / @xiongyuwu

12/26/2018 at 02:02PM

67
#448 - linus heinz / @heinz_linus

04/19/2019 at 09:04PM

68
#449 - Florian Kneist / @fkneist

11/28/2018 at 09:18AM

68
#450 - Graham Singer / @grahamsinger

01/05/2019 at 06:02AM