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 571 remaining solutions by signing in and submitting your own entry
#572 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

572 active golfers, 3067 entries

Leaderboard (lowest score wins):
20
#1 - Evyk / @Mr_Evyk

12/16/2018 at 08:51AM

20
#2 - rusheb / @rusheb1

12/18/2018 at 08:58PM

20
#3 - guxbug / @guxbug1

12/19/2018 at 04:29PM

20
#4 - Steven Bell / @stevenbell

12/19/2018 at 05:19PM

20
#5 - Ackman Syntax Error / @AckmanSux

12/21/2018 at 03:24PM

20
#6 - Acid One / @AcidOne2

12/26/2018 at 02:21PM

20
#7 - Julien Harbulot / @julienharbulot

12/27/2018 at 12:33AM

20
#8 - Jose Villalta 👨‍💻 / @PhilosoGeekDad

12/28/2018 at 04:50PM

20
#9 - 波波 / @sbob87

01/03/2019 at 07:49AM

20
#10 - たくみー(転職ドラシル) / @reirei_As

01/08/2019 at 06:41AM

20
#11 - herbage / @herbage2

01/12/2019 at 12:50PM

20
#12 - chocolate / @chocola81394123

01/20/2019 at 10:06AM

20
#13 - Federico / @gselsette

01/22/2019 at 02:01PM

20
#14 - xer0.5ive / @Bibekshah

01/23/2019 at 02:45PM

20
#15 - Артем Мухометзянов / @Timon_Surikat

01/31/2019 at 09:33PM

20
#16 - Titouan Teyssier / @TitouanT_

02/01/2019 at 03:40AM

20
#17 - makke_vn / @makke_vn

02/05/2019 at 04:47PM

20
#18 - Filipe Brandenburger / @filbranden

02/17/2019 at 06:05AM

20
#19 - ثامر / @julienborghetti

02/20/2019 at 06:33PM

20
#20 - Andreas Bolstad / @andreasblstd

02/24/2019 at 09:51PM

20
#21 - james_bunch / @james_bunch

03/05/2019 at 08:48AM

20
#22 - maq / @maq41476369

03/05/2019 at 12:54PM

20
#23 - k24w24 / @k24w24

03/15/2019 at 02:12PM

20
#24 - 🅷🅰🆁🆁🆈 / @HarryAAbrahams1

03/20/2019 at 10:51AM

20
#25 - Loنtre / @OtterPy

04/05/2019 at 12:05PM

20
#26 - Joel Eriksson / @OwariDa

04/09/2019 at 01:39PM

20
#27 - Lincoln / @chalcidfly

04/12/2019 at 04:17PM

20
#28 - alekfed / @alek_fed

04/14/2019 at 08:13AM

20
#29 - John / @John40423001

04/14/2019 at 11:08AM

20
#30 - Jaan Toots / @JaanToots

04/18/2019 at 09:28AM