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

292 active golfers, 1451 entries

Leaderboard (lowest score wins):
59
#241 - Julius / @cShortForC

12/31/2018 at 12:13PM

59
#242 - Thomas Branch / @twighk

01/27/2019 at 12:52PM

59
#243 - Narwaro / @Narwaro

01/30/2019 at 04:27PM

60
#244 - Gilad Slonim / @SlonimGilad

01/01/2019 at 07:26PM

61
#245 - Maas Lalani / @maaslalani

12/02/2018 at 04:48PM

61
#246 - Christophe Robillard / @krichtof

01/05/2019 at 02:41PM

62
#247 - Jurica / @Jurica34581259

11/16/2018 at 11:13AM

62
#248 - Cristian / @cris_perez_b

11/16/2018 at 02:59PM

62
#249 - heppen / @heppen_He

12/17/2018 at 01:06AM

62
#250 - Ainsley McGrath / @whole_grainsley

12/21/2018 at 10:07PM

63
#251 - Max Gittelman / @MaxGitt

12/09/2018 at 03:46AM

63
#252 - Vitaly Karpenko / @karpenko_vitaly

12/29/2018 at 12:53PM

63
#253 - jdw / @jdw76778810

01/23/2019 at 08:35AM

64
#254 - Kevin / @firedhippy

11/29/2018 at 03:22AM

66
#255 - Mathieu Chataigner / @mchataigner

11/27/2018 at 02:03PM

66
#256 - 唐偉 / @tangw

11/30/2018 at 11:02PM

66
#257 - xiong yuwu / @xiongyuwu

12/26/2018 at 02:02PM

68
#258 - Florian Kneist / @fkneist

11/28/2018 at 09:18AM

68
#259 - Graham Singer / @grahamsinger

01/05/2019 at 06:02AM

69
#260 - iveqy / @iveqy

11/21/2018 at 12:34PM

69
#261 - Hexa / @HxHxea

12/03/2018 at 07:39PM

69
#262 - Daniel Wolf / @DanielW06054976

01/03/2019 at 10:05AM

69
#263 - Sachet Mittal / @MittalSachet

01/27/2019 at 07:49AM

70
#264 - Jackie / @Jackie57887507

12/08/2018 at 03:20AM

70
#265 - fady zohdy / @fadyzohdy

01/16/2019 at 06:24PM

71
#266 - Khoa Anh Nguyen / @ca0932

12/27/2018 at 09:52AM

72
#267 - Elton Law / @d0nkrs

02/12/2019 at 06:59PM

75
#268 - editor3D / @editor3D

11/24/2018 at 07:48PM

75
#269 - wysiecki / @wysiecki

12/05/2018 at 05:39PM

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

12/04/2018 at 04:15AM