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):
68
#451 - Florian Kneist / @fkneist

11/28/2018 at 09:18AM

68
#452 - Graham Singer / @grahamsinger

01/05/2019 at 06:02AM

69
#453 - iveqy / @iveqy

11/21/2018 at 12:34PM

69
#454 - Hexa / @HxHxea

12/03/2018 at 07:39PM

69
#455 - Daniel Wolf / @DanielW06054976

01/03/2019 at 10:05AM

69
#456 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:49AM

70
#457 - Jackie / @Jackie57887507

12/08/2018 at 03:20AM

70
#458 - fady zohdy / @fadyzohdy

01/16/2019 at 06:24PM

70
#459 - Alexander Popov / @Alexand01782341

03/01/2019 at 02:27PM

71
#460 - Khoa Anh Nguyen / @ca0932

12/27/2018 at 09:52AM

72
#461 - Elton Law / @d0nkrs

02/12/2019 at 06:59PM

72
#462 - Richard / @Richard92158035

04/12/2019 at 03:07PM

75
#463 - editor3D / @editor3D

11/24/2018 at 07:48PM

75
#464 - wysiecki / @wysiecki

12/05/2018 at 05:39PM

76
#465 - R.T. Lechow / @rtlechow

12/04/2018 at 04:15AM

76
#466 - Philip Dexter / @philipanddexter

01/28/2019 at 12:08PM

78
#467 - Bin / @Bin42412743

12/22/2018 at 08:52AM

78
#468 - Patrick Lavin / @LavinComputes

01/30/2019 at 04:47PM

82
#469 - Toan Tran / @toantranz

04/30/2019 at 03:46AM

87
#470 - Brandon Braun / @Bmb330

12/29/2018 at 03:48AM

88
#471 - Chris Kiilu / @kiilu_chris

12/12/2018 at 12:20PM

88
#472 - kelaktaa / @kelaktaa

06/07/2019 at 01:18PM

91
#473 - Calvin / @calveenlee

01/10/2019 at 03:28PM

95
#474 - Jota / @rjjota

05/15/2019 at 06:08PM

95
#475 - popexizhi / @popexizhi

05/17/2019 at 08:01AM

97
#476 - noon / @noonknowsnonuno

03/06/2019 at 02:47PM

98
#477 - Harsha B C / @Harsha1306_

11/21/2018 at 11:05PM

109
#478 - NiXiOM / @NiXi0M

11/28/2018 at 08:41AM

112
#479 - Nikos Koukis / @bergercookie12

01/02/2019 at 03:19PM

115
#480 - abdelrahman / @AbdoEsam2011

12/08/2018 at 01:25AM