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):
18
#2461 - shpoont / @shpoont

06/30/2013 at 12:17PM

18
#2462 - Nick Todd / @NickTodd_

07/01/2013 at 10:29PM

18
#2463 - Marco Valtas / @mavcunha

07/12/2013 at 04:32AM

18
#2464 - benzrf / @benzrf

07/18/2013 at 03:53PM

18
#2465 - Vestrobaa / @Vestrobaa

07/18/2013 at 09:32PM

18
#2466 - caleb holt / @Zergleb

07/31/2013 at 07:47AM

18
#2467 - 0x0dd / @0x0DD

08/04/2013 at 08:47PM

18
#2468 - Przemysław Kamiński / @CXLII

08/05/2013 at 12:29PM

18
#2469 - Amos Chan / @amosfreakinchan

08/09/2013 at 05:58PM

18
#2470 - David Rosen / @DavidSRosen

08/12/2013 at 03:17AM

18
#2471 - Steve McHail / @smchail

08/21/2013 at 09:12AM

18
#2472 - Michał Bielawski / @m_bielawski

09/12/2013 at 11:52AM

18
#2473 - Alejandro Gómez / @dialelo

09/23/2013 at 10:00PM

18
#2474 - me / @turgleturgle

09/25/2013 at 07:15PM

18
#2475 - Andrew Clissold / @aclissold

09/26/2013 at 12:47PM

18
#2476 - prinz / @prinzdezibel

09/29/2013 at 07:32PM

18
#2477 - evilmoe ☮ / @evilmoe

10/12/2013 at 04:38PM

18
#2478 - Łukasz Więcek / @lukasz_wiecek

10/18/2013 at 08:03PM

18
#2479 - Chris Ford / @ctford

10/20/2013 at 07:29AM

18
#2480 - Artem Dudarev / @dudarev

10/20/2013 at 10:56AM

18
#2481 - edyfox / @edyfox

10/25/2013 at 02:01AM

18
#2482 - Jo Randomness / @JRandomness

10/26/2013 at 09:07PM

18
#2483 - Hoz / @hzopak

10/28/2013 at 03:06PM

18
#2484 - jmlucjav / @jmlucjav

10/29/2013 at 10:05PM

18
#2485 - Stephen G / @ssgelm

11/01/2013 at 09:17PM

18
#2486 - Rex Chung / @rexchung

11/05/2013 at 05:30AM

18
#2487 - Mike / @mikezter

11/07/2013 at 12:53PM

18
#2488 - Gökhan Arlı / @sylow

11/10/2013 at 10:11PM

18
#2489 - Will Handley / @falsewhenquined

11/24/2013 at 09:56PM

18
#2490 - Brett Cassette / @brettcassette

11/29/2013 at 09:37PM