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

3559 active golfers, 11443 entries

Leaderboard (lowest score wins):
18
#2671 - Sxcy / @SxcyX

11/05/2018 at 03:43PM

18
#2672 - Chris Maher / @chrismaherthe

11/15/2018 at 02:18AM

18
#2673 - editor3D / @editor3D

11/25/2018 at 07:15PM

18
#2674 - Performa / @performa6400

11/27/2018 at 05:21PM

18
#2675 - xiong yuwu / @xiongyuwu

12/26/2018 at 02:38PM

18
#2676 - Grorco / @grorco

01/07/2019 at 04:28PM

18
#2677 - John Smith / @JohnSmi14480159

01/09/2019 at 11:24PM

18
#2678 - 강현 / @Applesquiz

01/21/2019 at 02:08PM

18
#2679 - lofoneax / @lofoneax

01/23/2019 at 06:15AM

18
#2680 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 07:48AM

18
#2681 - Isaak Meier / @IsaakMeier

03/13/2019 at 03:36PM

18
#2682 - Reportados123 / @reportados123

06/19/2019 at 07:22PM

18
#2683 - Captain Proton / @CaptainProton5

08/01/2019 at 02:23PM

18
#2684 - Charlie Pai / @charlie_pai

08/22/2019 at 11:38PM

18
#2685 - José / @AngelGaldamez

08/26/2019 at 03:24AM

18
#2686 - Benjamin Pelletier / @benjipelletier

09/25/2019 at 01:42PM

18
#2687 - Lawrence Gray / @LawrenceGray23

10/19/2019 at 09:06AM

18
#2688 - Ralph Callaway / @RalphAtCCC

10/31/2019 at 05:53PM

18
#2689 - Emil Braserud / @Erdustiggen

11/10/2019 at 04:27PM

18
#2690 - Jonathan Yong / @yongrenjie

11/28/2019 at 05:38PM

19
#2691 - Jonathan Crossley / @_jcrossley

05/17/2013 at 04:33AM

19
#2692 - Christopher Gioia / @gioia_gioi

05/30/2013 at 08:11AM

19
#2693 - esiegel / @esiegel

07/06/2013 at 07:04PM

19
#2694 - Thomas Feiler / @SirTibsTibsford

09/06/2013 at 04:47AM

19
#2695 - Frettchen / @DayOfFrettchen

09/20/2013 at 05:54PM

19
#2696 - Anatolii Sakhnik / @sakhnik

09/30/2013 at 08:32PM

19
#2697 - Marek Kalnik / @marekkalnik

10/18/2013 at 03:54PM

19
#2698 - hekwall / @hekwall

10/22/2013 at 04:47PM

19
#2699 - Billy Ripper / @dirtlamb5

10/23/2013 at 05:46AM

19
#2700 - TJ Taylor / @dugancathal

11/05/2013 at 03:46AM