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

496 active golfers, 2607 entries

Leaderboard (lowest score wins):
40
#301 - Stefano Bettani / @StefanoBettani

01/19/2019 at 01:51PM

40
#302 - Matthias Kausl / @sig_segv

04/22/2019 at 07:55PM

40
#303 - Lingyu Yi / @LgxLingyu

05/15/2019 at 07:56AM

41
#304 - faisal / @faisalhackshah

11/25/2018 at 12:51AM

41
#305 - Why Am / @WhysDeCatOnFire

12/01/2018 at 02:02AM

41
#306 - Slawek Ligus / @ooz_ie

01/08/2019 at 06:28PM

41
#307 - Carl Blomqvist / @calleblomqvist

02/18/2019 at 05:50PM

41
#308 - severij / @severij_

03/04/2019 at 11:52PM

41
#309 - throw away / @f44lyf

05/29/2019 at 06:33AM

41
#310 - Sam Doiron / @Conlectus

06/23/2019 at 01:22AM

42
#311 - Adam Procio / @AdamProcio

12/10/2018 at 01:32AM

42
#312 - Richard Knight / @thisistherk

01/05/2019 at 08:05PM

42
#313 - bajidu / @bajidu

01/24/2019 at 10:40PM

42
#314 - Ng Sek Long / @NgSekLong

02/14/2019 at 06:50AM

42
#315 - Mark Stillwell / @marklee77

04/02/2019 at 11:07PM

42
#316 - dehodson / @dehodson

05/10/2019 at 12:35PM

42
#317 - Petter Wahlman / @badeip

06/07/2019 at 08:03AM

42
#318 - Cookie4D / @Cookie4D1

06/25/2019 at 04:49PM

43
#319 - Matze / @ebaharilikult

11/19/2018 at 08:50AM

43
#320 - phoibos92@gmail.com / @phoibos92

11/19/2018 at 04:51PM

43
#321 - Adam Martin-Côté / @AdamMartinCt1

11/30/2018 at 03:20PM

43
#322 - Cocquecigrues / @cocquecigrues

12/14/2018 at 10:57AM

43
#323 - Haoyen Shih / @tofusoul

05/20/2019 at 08:56PM

43
#324 - Charlie OConor / @charlieoconor

06/11/2019 at 10:20PM

44
#325 - Joachim Nyborg / @jnyborg

11/18/2018 at 03:46PM

44
#326 - Jacob Xu / @jacobhxu

12/05/2018 at 06:24AM

44
#327 - Oleg Marakhovsky / @OMarakhovsky

01/13/2019 at 03:59PM

44
#328 - Jan Sturm / @JanSturm77

02/12/2019 at 08:46PM

44
#329 - Paul Schaefer / @schaeferpp

05/24/2019 at 02:44PM

45
#330 - Zapp Branigan / @CapKippdotter

12/07/2018 at 10:18PM