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):
43
#181 - Adam Martin-Côté / @AdamMartinCt1

11/30/2018 at 03:20PM

43
#182 - Cocquecigrues / @cocquecigrues

12/14/2018 at 10:57AM

44
#183 - Joachim Nyborg / @jnyborg

11/18/2018 at 03:46PM

44
#184 - Jacob Xu / @jacobhxu

12/05/2018 at 06:24AM

44
#185 - Oleg Marakhovsky / @OMarakhovsky

01/13/2019 at 03:59PM

44
#186 - Jan Sturm / @JanSturm77

02/12/2019 at 08:46PM

45
#187 - Zapp Branigan / @CapKippdotter

12/07/2018 at 10:18PM

45
#188 - Jonny Wilson / @thejondom

12/28/2018 at 11:30PM

45
#189 - D3lt4lph4 / @d3lt4lph4

01/24/2019 at 09:58PM

46
#190 - Commi / @hellocommi

11/23/2018 at 06:00PM

46
#191 - gturri / @g_turri

11/27/2018 at 09:24AM

46
#192 - Bennett / @bennettbackward

12/18/2018 at 01:29PM

46
#193 - sstar / @sstar60015687

12/21/2018 at 04:41AM

46
#194 - daveramirez / @daveramirez

01/03/2019 at 09:10PM

46
#195 - Kit Saels / @KitSaels

01/24/2019 at 09:21PM

48
#196 - Mauricio Ariza / @_hell_spawn

11/19/2018 at 02:49PM

48
#197 - Arch Delacy / @DelacyEsq

11/22/2018 at 09:19PM

48
#198 - Aurélien Blicq / @AurelienBlicq

12/09/2018 at 03:16PM

48
#199 - Doesit Matter / @DoesitMark

02/03/2019 at 02:33PM

49
#200 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 04:48PM

49
#201 - Bart Barnard / @BartBarnard

11/18/2018 at 12:42PM

49
#202 - golgi / @gloggyapparatus

12/03/2018 at 10:47PM

49
#203 - PandaScript (Thanh Le) / @PandaScriptCom

12/12/2018 at 02:16PM

49
#204 - Shafiq Jetha / @sjetha

12/12/2018 at 10:10PM

49
#205 - Eliran Bar Noy / @EliranBarNoy

12/17/2018 at 01:15PM

49
#206 - Nicolas Decayeux / @NicolasDecayeu1

12/17/2018 at 06:16PM

49
#207 - Charlie Le / @charlietle

12/18/2018 at 02:56AM

49
#208 - abgalphabet / @abgalphabet

01/08/2019 at 02:57PM

50
#209 - py / @py97235249

02/02/2019 at 02:54AM

50
#210 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:26PM