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

3976 active golfers, 12991 entries

Leaderboard (lowest score wins):
24
#3751 - Anil Narayan / @AnilNarayan2013

07/23/2020 at 03:30AM

24
#3752 - Rustem B. / @_rustemb

07/31/2020 at 11:52AM

24
#3753 - 伟哥 / @w15659018558

10/02/2020 at 02:39PM

24
#3754 - Samuel Lewi H / @slh_samuel

11/08/2020 at 04:19PM

24
#3755 - said / @said13664960

12/15/2020 at 10:22PM

24
#3756 - Ciaran / @iamh0ax

11/25/2023 at 08:12PM

25
#3757 - Ben Friedland / @bfriedland174

07/03/2013 at 05:42PM

25
#3758 - Vincent Lee / @vincentleest

07/08/2013 at 06:25AM

25
#3759 - Dan Harrington / @Dan1H1

07/26/2013 at 01:49AM

25
#3760 - Ignazio Mostallino / @gnagnone

08/15/2013 at 04:59PM

25
#3761 - Sukesan1984 / @sukesan1984

09/12/2013 at 12:01PM

25
#3762 - Victor Koronen / @victorkoronen

11/18/2013 at 07:09PM

25
#3763 - Vkulla / @vkulla42

11/20/2013 at 01:02AM

25
#3764 - Nicolas Friedli / @NicolasFriedli

12/01/2013 at 01:06PM

25
#3765 - 3ffus0on / @3ffusi0on

12/05/2013 at 04:24PM

25
#3766 - Eric Ahlberg / @e_ahlberg

12/14/2013 at 07:02PM

25
#3767 - Quasar Jarosz / @quasarj

01/09/2014 at 02:51AM

25
#3768 - William Fligor / @williamfligor

01/28/2014 at 05:15PM

25
#3769 - Olivier Parent / @oliparcol

02/01/2014 at 03:30PM

25
#3770 - コダマ / @pyorotan

02/13/2014 at 02:02PM

25
#3771 - Chris / @143Pi

03/28/2014 at 01:46PM

25
#3772 - Felipe Jaramillo F / @mrfelipe

04/01/2014 at 05:46AM

25
#3773 - Корнев Руслан / @woto7

06/15/2014 at 02:26AM

25
#3774 - Pratyush Mishra / @I_am_Tomato

06/21/2014 at 11:23PM

25
#3775 - eitanlees / @eitanlees

06/23/2014 at 04:36AM

25
#3776 - Paul Rodgers / @oursjaune

07/13/2014 at 02:11PM

25
#3777 - Nicolas Dascanio / @NicoDascanio

11/25/2014 at 07:49PM

25
#3778 - Bruno Vieira Costa / @bruno_vcosta

11/10/2015 at 01:09AM

25
#3779 - Christopher Wells / @ExcaliburZero_Z

12/06/2015 at 09:05PM

25
#3780 - Kevin Gisi / @cheerskevin

02/22/2016 at 09:07AM