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):
45
#331 - Jonny Wilson / @thejondom

12/28/2018 at 11:30PM

45
#332 - D3lt4lph4 / @d3lt4lph4

01/24/2019 at 09:58PM

45
#333 - clonejo / @clonejo

03/30/2019 at 12:02AM

45
#334 - Matthew Heaton / @MatthewHeaton17

06/06/2019 at 04:36PM

46
#335 - Commi / @hellocommi

11/23/2018 at 06:00PM

46
#336 - gturri / @g_turri

11/27/2018 at 09:24AM

46
#337 - Bennett / @bennettbackward

12/18/2018 at 01:29PM

46
#338 - sstar / @sstar60015687

12/21/2018 at 04:41AM

46
#339 - daveramirez / @daveramirez

01/03/2019 at 09:10PM

46
#340 - Kit Saels / @KitSaels

01/24/2019 at 09:21PM

46
#341 - Simon Rycroft / @sirycroftmusic

03/25/2019 at 02:12PM

46
#342 - Matteo / @Matteo_Mer

04/04/2019 at 10:21PM

46
#343 - dayshade / @dayshade_7

04/12/2019 at 02:11PM

46
#344 - Geraldo Ribeiro / @geraldo_dev

05/04/2019 at 07:50PM

46
#345 - Nick Anishenko / @NAnishenko

05/22/2019 at 11:13AM

46
#346 - a60068 / @a60068

06/05/2019 at 01:20PM

46
#347 - Will Durney / @WillDurney

06/06/2019 at 09:22PM

46
#348 - Graeme Smith / @InstaGraeme

06/07/2019 at 08:25PM

46
#349 - duyanh.y4n.pham / @PhamY4n

06/11/2019 at 08:59AM

47
#350 - throwaway / @throwaw77650361

03/05/2019 at 07:08PM

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

04/02/2019 at 07:25AM

47
#352 - her / @her35520005

04/04/2019 at 09:10PM

47
#353 - El Carpet / @elcarpet

05/30/2019 at 07:17PM

48
#354 - Mauricio Ariza / @_hell_spawn

11/19/2018 at 02:49PM

48
#355 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:19PM

48
#356 - Aurélien Blicq / @AurelienBlicq

12/09/2018 at 03:16PM

48
#357 - Doesit Matter / @DoesitMark

02/03/2019 at 02:33PM

48
#358 - Jounathaen / @jounathaen

03/29/2019 at 10:31PM

48
#359 - りょ / @ryoo141

05/08/2019 at 03:32PM

49
#360 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 04:48PM