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

387 active golfers, 1991 entries

Leaderboard (lowest score wins):
49
#271 - dyson dark / @U9gJt7mOEOjbRN7

11/17/2018 at 04:48PM

49
#272 - Bart Barnard / @BartBarnard

11/18/2018 at 12:42PM

49
#273 - golgi / @gloggyapparatus

12/03/2018 at 10:47PM

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

12/12/2018 at 02:16PM

49
#275 - Shafiq Jetha / @sjetha

12/12/2018 at 10:10PM

49
#276 - Eliran Bar Noy / @EliranBarNoy

12/17/2018 at 01:15PM

49
#277 - Nicolas Decayeux / @NicolasDecayeu1

12/17/2018 at 06:16PM

49
#278 - Charlie Le / @charlietle

12/18/2018 at 02:56AM

49
#279 - abgalphabet / @abgalphabet

01/08/2019 at 02:57PM

49
#280 - Svetlin PENKOV / @SvetlinPenkov

03/08/2019 at 03:31PM

49
#281 - Gabriel / @cimourdain

03/19/2019 at 04:17PM

49
#282 - Daren Hayward / @DarenHayward

04/16/2019 at 07:44PM

50
#283 - py / @py97235249

02/02/2019 at 02:54AM

50
#284 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:26PM

50
#285 - Carsano / @DamienFbn

03/03/2019 at 09:15PM

51
#286 - tuyen / @tuyen66827418

11/27/2018 at 10:38AM

51
#287 - Ryan Nevius / @ryannevius

12/18/2018 at 02:34PM

51
#288 - Brome / @Brome20887421

01/04/2019 at 05:32PM

51
#289 - Kyle Safran / @kylesafran

01/17/2019 at 10:16PM

51
#290 - Michael Aquilina / @mikeaquilina4

01/27/2019 at 09:22PM

51
#291 - Antonio Bayonas / @BayonasAntonio

03/01/2019 at 08:18PM

51
#292 - David A. Lyon / @dauglyon

03/29/2019 at 02:37PM

51
#293 - Gitsnik / @dracyrys

04/18/2019 at 02:52PM

52
#294 - diwa / @Di_nate_

11/23/2018 at 02:20AM

52
#295 - Romain D. / @r_dulery

11/24/2018 at 06:04PM

52
#296 - Tom Troyer / @tom_troyer

11/29/2018 at 07:48PM

52
#297 - Rap Game Dan Aykroyd / @rapdanaykroyd

01/08/2019 at 04:35PM

52
#298 - Мастер Гервант / @Dr_Dmatrix

01/10/2019 at 05:02PM

52
#299 - hbdgr / @t_hbdgr

01/12/2019 at 10:10PM

52
#300 - Ricardo Lima / @ricponteslima

04/10/2019 at 04:17PM