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

486 active golfers, 2565 entries

Leaderboard (lowest score wins):
36
#241 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 10:53AM

36
#242 - Daniel Li / @delete12_

04/11/2019 at 03:15AM

36
#243 - Przemek Kurek / @PrzemekKurek

05/21/2019 at 06:49AM

37
#244 - Edgard Leal / @EdgardLeal

11/16/2018 at 01:00PM

37
#245 - Levi Self / @LeviRSelf

11/18/2018 at 05:43AM

37
#246 - King / @AshleysBrother

11/18/2018 at 08:22PM

37
#247 - Bracaval Elias / @BracavalE

11/21/2018 at 09:12AM

37
#248 - Pouet / @PouetForever

11/21/2018 at 01:36PM

37
#249 - william cedervall / @Master_smily

11/22/2018 at 03:21PM

37
#250 - garry quested / @GQuested

11/22/2018 at 04:13PM

37
#251 - Rossi / @mrossinek

12/02/2018 at 11:57AM

37
#252 - Zeeshan Ahmad / @zeeshahmad

12/16/2018 at 11:14AM

37
#253 - Jared Knutson / @Knu750n_0xcc

12/24/2018 at 05:57PM

37
#254 - thesilentone / @thesile99543104

12/30/2018 at 04:00PM

37
#255 - Jonathan Eidsness / @jonathaneidsnes

03/04/2019 at 10:15PM

37
#256 - Chris AtLee / @chrisatlee

03/05/2019 at 04:52PM

37
#257 - Johannes Braun / @jbhannenz

03/11/2019 at 11:06PM

37
#258 - Timothy Bryan / @tim_bryan

04/09/2019 at 12:43PM

37
#259 - James Stidard / @JamesStidard

05/03/2019 at 07:04PM

37
#260 - Damián Ariel Marotte / @damianarielm

05/10/2019 at 12:39AM

38
#261 - zzndb / @zdb_lx

11/25/2018 at 07:12AM

38
#262 - Performa / @performa6400

11/27/2018 at 04:24PM

38
#263 - Théo / @Theodnls

12/16/2018 at 05:22PM

38
#264 - Wayne Franklin / @waf1waf

12/24/2018 at 07:30PM

38
#265 - MrSunshineBug / @MrSunshineBug

12/29/2018 at 11:36AM

38
#266 - Daniel K. / @lan4k

12/29/2018 at 02:28PM

38
#267 - Phil Devitt / @GeneralHav0k

12/31/2018 at 09:30PM

38
#268 - JBL / @jbl428

02/06/2019 at 01:42PM

38
#269 - sisi100 / @s1si100

02/24/2019 at 01:20PM

38
#270 - vince / @vincentvangott

03/02/2019 at 05:55PM