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

572 active golfers, 3067 entries

Leaderboard (lowest score wins):
33
#241 - Egor Fedkin / @Jet_Flynn

11/28/2018 at 06:52PM

33
#242 - Arkadiusz Gabryś / @ArkadiuszGabrys

12/21/2018 at 06:06PM

33
#243 - Bobby Tables / @BobbyTables12

01/08/2019 at 07:14PM

33
#244 - Yes,THAT John McAvoy / @aboy_John

01/14/2019 at 03:29AM

33
#245 - Brandon Pfeifer / @BrandonPfeifer6

04/05/2019 at 07:05PM

33
#246 - Nicolas Daval / @ndaval

04/07/2019 at 06:14PM

33
#247 - 🐄 / @cow_emoji

04/29/2019 at 01:04PM

33
#248 - Coruja Queridinha / @miriamretka

04/29/2019 at 04:48PM

33
#249 - Καράτε Μόνο / @karate_mono

05/10/2019 at 08:48AM

33
#250 - Kim bong yeon / @socoolbear

06/01/2019 at 12:10PM

33
#251 - Nathan Knox / @the_nathan_knox

06/26/2019 at 04:24PM

33
#252 - kenneth foster / @kennethfoster12

06/29/2019 at 10:49PM

33
#253 - Epecb / @BceEpecb

06/29/2019 at 11:53PM

34
#254 - PJ Frazer / @pj_frazer

11/22/2018 at 02:22AM

34
#255 - robinro / @robinro

11/22/2018 at 06:55PM

34
#256 - Omar / @ombako

12/03/2018 at 09:10AM

34
#257 - Paulo H Baumann / @PauloBaumann

12/05/2018 at 05:37PM

34
#258 - Anon75639 / @anon75639

12/11/2018 at 02:06AM

34
#259 - carly stan account / @theryangeary

12/30/2018 at 03:34AM

34
#260 - William Robson / @wnrbs

01/02/2019 at 12:20AM

34
#261 - Mac Goever / @MacGoever

01/04/2019 at 03:45PM

34
#262 - melts / @melts

01/09/2019 at 08:21PM

34
#263 - Dominic Z / @thammaaa

01/31/2019 at 12:29AM

34
#264 - Kristian Haug / @krimhaug

02/26/2019 at 12:09PM

34
#265 - Manos Koutselakis / @koutselakis_m

05/04/2019 at 11:08PM

34
#266 - vimgolfer24271 / @vimgolfer24271

05/14/2019 at 07:19AM

34
#267 - Clarence Cheong / @IBrightStudioI

07/10/2019 at 04:02AM

34
#268 - mag1cal.unic0rn / @unic0rn_mag1cal

07/11/2019 at 06:45AM

34
#269 - Anthony Martinez / @anthony_jesus_

07/12/2019 at 07:58PM

34
#270 - ゴエモン(俗稱).born / @_toku_san

07/17/2019 at 12:16PM