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

386 active golfers, 1989 entries

Leaderboard (lowest score wins):
42
#241 - Mark Stillwell / @marklee77

04/02/2019 at 11:07PM

43
#242 - Matze / @ebaharilikult

11/19/2018 at 08:50AM

43
#243 - phoibos92@gmail.com / @phoibos92

11/19/2018 at 04:51PM

43
#244 - Adam Martin-Côté / @AdamMartinCt1

11/30/2018 at 03:20PM

43
#245 - Cocquecigrues / @cocquecigrues

12/14/2018 at 10:57AM

44
#246 - Joachim Nyborg / @jnyborg

11/18/2018 at 03:46PM

44
#247 - Jacob Xu / @jacobhxu

12/05/2018 at 06:24AM

44
#248 - Oleg Marakhovsky / @OMarakhovsky

01/13/2019 at 03:59PM

44
#249 - Jan Sturm / @JanSturm77

02/12/2019 at 08:46PM

45
#250 - Zapp Branigan / @CapKippdotter

12/07/2018 at 10:18PM

45
#251 - Jonny Wilson / @thejondom

12/28/2018 at 11:30PM

45
#252 - D3lt4lph4 / @d3lt4lph4

01/24/2019 at 09:58PM

45
#253 - clonejo / @clonejo

03/30/2019 at 12:02AM

46
#254 - Commi / @hellocommi

11/23/2018 at 06:00PM

46
#255 - gturri / @g_turri

11/27/2018 at 09:24AM

46
#256 - Bennett / @bennettbackward

12/18/2018 at 01:29PM

46
#257 - sstar / @sstar60015687

12/21/2018 at 04:41AM

46
#258 - daveramirez / @daveramirez

01/03/2019 at 09:10PM

46
#259 - Kit Saels / @KitSaels

01/24/2019 at 09:21PM

46
#260 - Simon Rycroft / @sirycroftmusic

03/25/2019 at 02:12PM

46
#261 - Matteo / @Matteo_Mer

04/04/2019 at 10:21PM

46
#262 - dayshade / @dayshade_7

04/12/2019 at 02:11PM

47
#263 - throwaway / @throwaw77650361

03/05/2019 at 07:08PM

47
#264 - Tyler k the science guy / @tyler_karpe

04/02/2019 at 07:25AM

47
#265 - her / @her35520005

04/04/2019 at 09:10PM

48
#266 - Mauricio Ariza / @_hell_spawn

11/19/2018 at 02:49PM

48
#267 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:19PM

48
#268 - Aurélien Blicq / @AurelienBlicq

12/09/2018 at 03:16PM

48
#269 - Doesit Matter / @DoesitMark

02/03/2019 at 02:33PM

48
#270 - Jounathaen / @jounathaen

03/29/2019 at 10:31PM