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):
51
#211 - tuyen / @tuyen66827418

11/27/2018 at 10:38AM

51
#212 - Ryan Nevius / @ryannevius

12/18/2018 at 02:34PM

51
#213 - Brome / @Brome20887421

01/04/2019 at 05:32PM

51
#214 - Kyle Safran / @kylesafran

01/17/2019 at 10:16PM

51
#215 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 09:22PM

52
#216 - diwa / @Di_nate_

11/23/2018 at 02:20AM

52
#217 - Romain D. / @r_dulery

11/24/2018 at 06:04PM

52
#218 - Tom Troyer / @tom_troyer

11/29/2018 at 07:48PM

52
#219 - Rap Game Dan Aykroyd / @rapdanaykroyd

01/08/2019 at 04:35PM

52
#220 - Мастер Гервант / @Dr_Dmatrix

01/10/2019 at 05:02PM

52
#221 - hbdgr / @t_hbdgr

01/12/2019 at 10:10PM

53
#222 - â̩̇ͬ̊ͮ̚ͅa͓͓͈̮̍͋͋ͥ̑ͣͤ̓r̘̘͕ͯͯ͒̄̊̈̓̋̈o̬̺͓̞̞͌̽͂͗̂͐̊n͂ / @twitmadcvnt

11/27/2018 at 09:57AM

53
#223 - Arcades / @Arcades_2

12/02/2018 at 12:21AM

53
#224 - Igor Line / @igorlineee

01/02/2019 at 06:19PM

54
#225 - Josh Williams / @JoshEW2009

11/21/2018 at 03:38PM

54
#226 - Jayesh Hathila / @jayesh_hathila

11/23/2018 at 06:01PM

54
#227 - Rob Barry / @rob_barry

11/24/2018 at 12:19PM

54
#228 - Anant Mishra / @anantanni22

11/30/2018 at 06:42AM

54
#229 - Andy Novocin / @AndyNovocin

01/09/2019 at 11:10AM

55
#230 - MEschenbacher / @eschenbacher_m

12/14/2018 at 10:25PM

55
#231 - Jerry Zhu / @xpost2000games

12/27/2018 at 01:58PM

56
#232 - hansim / @hanstartup

12/02/2018 at 07:50AM

56
#233 - JohnnyVim / @VimJohnny

12/03/2018 at 02:42PM

56
#234 - Edward Vear / @edward_vear

12/19/2018 at 05:31AM

56
#235 - Jasper Pangilinan / @JasperP

12/21/2018 at 11:40PM

56
#236 - amitay drummer / @amitay87

12/25/2018 at 08:04PM

56
#237 - Will / @obiwan__k3n00bi

01/02/2019 at 12:11AM

58
#238 - Luan Truong / @hubbatch0

01/06/2019 at 12:43AM

58
#239 - J0urn3y / @J0urn3y22

02/18/2019 at 10:56PM

59
#240 - Mitch / @miffstarr

12/09/2018 at 07:07AM