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):
52
#391 - Aurel / @AurelienFebvre

06/23/2019 at 08:19PM

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

11/27/2018 at 09:57AM

53
#393 - Arcades / @Arcades_2

12/02/2018 at 12:21AM

53
#394 - Igor Line / @igorlineee

01/02/2019 at 06:19PM

53
#395 - Jeff / @sir_wiggles3

02/22/2019 at 06:34PM

53
#396 - Saphire Lattice / @SaphireLattice

03/06/2019 at 11:54AM

53
#397 - Lewis Guignard / @LewisGuignard

04/13/2019 at 12:17AM

53
#398 - Gar Morley / @garmorley

05/27/2019 at 11:00AM

54
#399 - Josh Williams / @JoshEW2009

11/21/2018 at 03:38PM

54
#400 - Jayesh Hathila / @jayesh_hathila

11/23/2018 at 06:01PM

54
#401 - Rob Barry / @rob_barry

11/24/2018 at 12:19PM

54
#402 - Anant Mishra / @anantanni22

11/30/2018 at 06:42AM

54
#403 - Andy Novocin / @AndyNovocin

01/09/2019 at 11:10AM

54
#404 - Jonathan / @jberglinds

03/14/2019 at 02:59PM

54
#405 - yipcyj / @yipcyj

05/03/2019 at 01:27PM

54
#406 - Jacob McCrumb / @MccrumbJacob

05/29/2019 at 08:42PM

55
#407 - MEschenbacher / @eschenbacher_m

12/14/2018 at 10:25PM

55
#408 - Jerry Zhu / @xpost2000games

12/27/2018 at 01:58PM

55
#409 - Jess / @Jess74311450

06/07/2019 at 03:23PM

56
#410 - hansim / @hanstartup

12/02/2018 at 07:50AM

56
#411 - JohnnyVim / @VimJohnny

12/03/2018 at 02:42PM

56
#412 - Edward Vear / @edward_vear

12/19/2018 at 05:31AM

56
#413 - Jasper Pangilinan / @JasperP

12/21/2018 at 11:40PM

56
#414 - amitay drummer / @amitay87

12/25/2018 at 08:04PM

56
#415 - Will / @obiwan__k3n00bi

01/02/2019 at 12:11AM

56
#416 - Kevin Ushey / @kevin_ushey

06/06/2019 at 10:27PM

57
#417 - Danny / @dannywood1976

03/27/2019 at 02:33PM

57
#418 - john ford / @johnfor65634499

04/17/2019 at 10:51PM

57
#419 - Kyle Passarelli / @kpassapk

04/20/2019 at 03:09PM

58
#420 - Luan Truong / @hubbatch0

01/06/2019 at 12:43AM