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 5192f96ad8df110002000002

Words in parens

We should all ace this, right?

Start file
one two
three
End file
(one) (two)
(three)

View Diff

1,2c1,2
< one two
< three
---
> (one) (two)
> (three)

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 3508 remaining solutions by signing in and submitting your own entry
#3509 velina v veleva / @vveleva - Score: 155 - 04/23/15 @ 16:55
::%s/\(\a*\)/(&)/g<CR>ZZ<C-A><BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><BS><CR><CR>%s/\(\w*\)/(\1)/g<CR>ZZ/<Esc><Esc>u<Esc>/<BS>:%s/\(\w*\)/(\1)/g<CR>ZZ<CR>:%s/\(\w*\)/(\1)/g<CR>ZZ<Left><Left><Right><Right><Right><BS><BS><BS><BS><BS><BS><CR><Esc>:w<CR><Esc>:wq<CR>

0 comments


Created by: @udioica

3509 active golfers, 11277 entries

Leaderboard (lowest score wins):
32
#3451 - WoljaIlpapa / @WoljaIlpapa

12/19/2013 at 11:42AM

32
#3452 - Jikku Jose / @JikkuJose

04/20/2014 at 03:31AM

32
#3453 - Chris Grantham / @crgrantham

11/13/2015 at 05:28PM

32
#3454 - オガタ マコト / @ogata0510

01/20/2016 at 07:20AM

33
#3455 - Tyler Hoyt / @hoytie

01/28/2014 at 08:34PM

33
#3456 - Hugo Tai / @HugoTai100

06/11/2019 at 05:22AM

34
#3457 - Dave Aitken / @actionshrimp

08/27/2013 at 07:52PM

34
#3458 - Micha / @michman89

08/09/2016 at 12:29PM

34
#3459 - Thiago Preischadt / @TPreischadt

07/11/2019 at 01:11AM

35
#3460 - klewi / @klewi2

10/03/2013 at 10:11AM

35
#3461 - Daryl Lau / @daryljlau

10/27/2013 at 09:27PM

35
#3462 - LittleQ / @littleq0903

12/09/2013 at 04:10AM

35
#3463 - ITechJunkie / @ITechJunkie

01/28/2014 at 07:27PM

36
#3464 - Joe Campedelli / @theRealCamper

11/14/2013 at 03:35AM

36
#3465 - じゃくやま / @zaki_taka4

12/23/2013 at 03:13AM

36
#3466 - Jurica / @Jurica34581259

11/14/2018 at 11:29PM

36
#3467 - Hayfay D. Audax / @HayfayDA

01/24/2019 at 11:38PM

37
#3468 - John Doe / @JohnDoeAtLarge

08/26/2014 at 07:18PM

37
#3469 - Travis / @trayoda

11/06/2014 at 09:38PM

38
#3470 - gaetan navez / @quiricou

07/24/2013 at 05:29PM

38
#3471 - Daniel Urzica / @revealer_dan

11/21/2013 at 11:46AM

38
#3472 - Cao Manh Dat / @caomanhdat

10/30/2014 at 02:20AM

39
#3473 - FocusandBlur / @focusandblur

03/23/2014 at 08:52PM

40
#3474 - Pablo / @chambawamba358

10/02/2013 at 12:13PM

40
#3475 - Volafile.io / @volafile

12/20/2013 at 03:36PM

40
#3476 - bluehat / @b1u3h4t

09/17/2014 at 04:03PM

40
#3477 - Jean Carlo Machado / @JeanCarloMachad

06/04/2015 at 05:48PM

40
#3478 - Hasan Alirajpurwala / @hasan_356

01/26/2019 at 07:02AM

40
#3479 - Jakub Jančička / @JancickaJ

09/22/2019 at 08:29AM

41
#3480 - Webdeveloper⭐⭐ / @refschool

11/09/2018 at 08:27PM