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):
21
#91 - LC / @leeren

01/22/2019 at 04:07AM

21
#92 - Marc Päpper / @mpaepper

01/28/2019 at 06:35AM

21
#93 - Kerson Hsiao / @KersonHsiao

02/03/2019 at 10:44AM

21
#94 - T A / @SirAviles

02/09/2019 at 09:51AM

21
#95 - sjcomp / @sjcomp

02/19/2019 at 08:43PM

21
#96 - ahm4711 / @ahm4711

03/01/2019 at 10:10PM

21
#97 - enji / @enji_ja

03/15/2019 at 04:56PM

21
#98 - Parsa Amini / @ParsaAmini

03/19/2019 at 05:23AM

21
#99 - Sam Kim / @samkimhis

03/20/2019 at 04:20PM

21
#100 - adir ohayon / @AdirKip

03/21/2019 at 12:49AM

21
#101 - wanghbxxxx / @wanghbxxxx

03/27/2019 at 02:26AM

21
#102 - Maximilian F. / @TheMaex

03/30/2019 at 01:28AM

21
#103 - Roman Vrublevskiy / @R0manza

04/23/2019 at 10:13PM

21
#104 - shredded / @shredded

04/24/2019 at 08:32PM

21
#105 - Roger Bongers / @RogerBongers

04/28/2019 at 04:04PM

21
#106 - Sherab Giovannini / @shaddycls

05/02/2019 at 08:59PM

21
#107 - Jonáš Šerých / @serycjon

05/03/2019 at 04:12PM

21
#108 - Arno / @arnoxmp

05/09/2019 at 08:40AM

21
#109 - Nolen Royalty / @NolenRoyalty

05/14/2019 at 01:04AM

21
#110 - heppen / @heppen_He

05/14/2019 at 12:34PM

21
#111 - Seunghun Lee / @earlbread

05/25/2019 at 05:12PM

21
#112 - aggums / @touhoueurobeat

05/25/2019 at 08:20PM

21
#113 - James Whitlock / @Keitarusm

06/06/2019 at 08:08PM

21
#114 - overlookedhashmap / @overlookedhash1

06/07/2019 at 05:12PM

21
#115 - Robin / @0x767570

06/18/2019 at 08:55PM

21
#116 - hielke / @hielke24840788

06/22/2019 at 06:27PM

21
#117 - Johnny footlight / @JFootlight

06/29/2019 at 10:15AM

21
#118 - ixf / @ixfdv

07/05/2019 at 06:32PM

21
#119 - Joe Fahnestock🌵 / @Joecupojoe

07/22/2019 at 08:48PM

21
#120 - vana / @vana15129217

07/23/2019 at 08:39AM