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

3428 active golfers, 11002 entries

Leaderboard (lowest score wins):
14
#121 - Conner McDaniel / @connermcd

10/29/2013 at 03:09AM

14
#122 - Jack Z / @itszhou

10/29/2013 at 05:51AM

14
#123 - Kyle McLamb / @jargonverb

10/29/2013 at 05:40PM

14
#124 - Philip Golfer / @AssisGolfer

10/30/2013 at 01:29AM

14
#125 - Grigoriy Glushko / @grinderrz

10/30/2013 at 12:12PM

14
#126 - Michael / @thatDeitch

10/31/2013 at 12:13AM

14
#127 - Amir S / @_AmirS

11/01/2013 at 05:52PM

14
#128 - CarlMartin Rosenberg / @cmrosenberg

11/02/2013 at 10:00PM

14
#129 - Ben Nak / @BbB8nNn

11/03/2013 at 05:38PM

14
#130 - Joseph J. Piché / @jjpiche

11/03/2013 at 06:07PM

14
#131 - Ruy Diaz / @diazruy

11/04/2013 at 08:28PM

14
#132 - Nathan Wallace / @nathanmwallace

11/04/2013 at 10:14PM

14
#133 - Charles H. Leggett / @cleggett

11/05/2013 at 03:53AM

14
#134 - Shawn Dumas / @shawndumas

11/05/2013 at 05:53AM

14
#135 - 邱韵 / @griffinqiu

11/06/2013 at 04:13PM

14
#136 - Stefan Schmidt / @stafue

11/08/2013 at 10:56PM

14
#137 - BIHEL Damien / @bihel_d

11/09/2013 at 06:28PM

14
#138 - Thomas Dressler / @Thomas4694

11/09/2013 at 11:11PM

14
#139 - Jonathan Potter / @nTypeRed

11/11/2013 at 02:36AM

14
#140 - M / @MaxlufsW

11/11/2013 at 11:59AM

14
#141 - David Heath / @DavidHeath16

11/11/2013 at 10:32PM

14
#142 - Matt Richards / @_tthew

11/11/2013 at 11:00PM

14
#143 - Jonas Ren / @rz805

11/13/2013 at 06:34AM

14
#144 - Allan Tokuda / @atokuda

11/14/2013 at 01:07AM

14
#145 - Christian C. Salvadó / @cmsalvado

11/14/2013 at 06:26AM

14
#146 - Alfred Singlestone / @ASinglestone

11/15/2013 at 06:34AM

14
#147 - Steven Occhipinti / @steveocchipinti

11/15/2013 at 06:37AM

14
#148 - kurban / @kurban_mall

11/15/2013 at 07:29AM

14
#149 - Ilya Ermolin / @ermolinis

11/15/2013 at 02:11PM

14
#150 - eWaves / @GiulioBortot

11/18/2013 at 05:02PM