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

3560 active golfers, 11444 entries

Leaderboard (lowest score wins):
17
#2341 - JPL / @jplecaille

09/03/2014 at 08:44AM

17
#2342 - dylan / @dcourv

09/20/2014 at 05:35PM

17
#2343 - Robbie Clarken / @robbieclarken

09/29/2014 at 11:19AM

17
#2344 - Matthew Thompson / @cblop

10/03/2014 at 09:20AM

17
#2345 - Ben Moon / @GuiltyDolphin

10/05/2014 at 08:31PM

17
#2346 - jared swarts / @JaredSwarts

12/12/2014 at 10:59PM

17
#2347 - Araka Bar / @ArakaBar

12/23/2014 at 10:35AM

17
#2348 - allenxuyb / @allenxuyb

12/26/2014 at 04:48AM

17
#2349 - 曾鹏文 / @ZengPengWen

12/27/2014 at 11:53AM

17
#2350 - Eric Biven / @EricBiven

12/31/2014 at 09:53PM

17
#2351 - Bill Fern / @Fernious

01/05/2015 at 07:40PM

17
#2352 - Ulysse Carion / @ucarion

01/13/2015 at 04:00AM

17
#2353 - Moritz Schüpp / @moritzschuepp

01/20/2015 at 11:10AM

17
#2354 - Andrey / @andreyrmg

01/20/2015 at 12:14PM

17
#2355 - Gregory Newman / @bozoslivehere

01/23/2015 at 03:53AM

17
#2356 - 裏連 / @uraren_bot

02/02/2015 at 07:58AM

17
#2357 - 哆啦比猫 / @cjxgm2

02/13/2015 at 12:49PM

17
#2358 - Maiz Lulkin / @joaomilho

02/15/2015 at 01:00PM

17
#2359 - YK / @Dongas420

03/01/2015 at 02:11AM

17
#2360 - Deepak Surti / @dmsurti

03/12/2015 at 01:21PM

17
#2361 - el R / @el_r

03/14/2015 at 10:31PM

17
#2362 - Mart Birnbaum / @grinningc

03/19/2015 at 11:18AM

17
#2363 - Kamil Laskowski / @laskowskikamil

03/19/2015 at 08:52PM

17
#2364 - David Orr / @dorr91

03/23/2015 at 05:53PM

17
#2365 - ɐʇnɥsɐpoʇ / @todashuta

03/25/2015 at 09:30AM

17
#2366 - Raj / @brshenoy

04/02/2015 at 10:01PM

17
#2367 - talineo / @talineo_

04/10/2015 at 10:33PM

17
#2368 - Rathrio / @Rathrio

04/29/2015 at 04:40PM

17
#2369 - Alex Bartol / @alexbartol

05/07/2015 at 05:32PM

17
#2370 - luffy / @raxcoi

05/13/2015 at 07:51PM