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

3561 active golfers, 11449 entries

Leaderboard (lowest score wins):
17
#2371 - luffy / @raxcoi

05/13/2015 at 07:51PM

17
#2372 - Hervé Rouault / @hrouault

06/09/2015 at 06:17PM

17
#2373 - Cakejoke / @Cakejoke

07/05/2015 at 02:53PM

17
#2374 - CoCo Loco / @lc2817

08/02/2015 at 09:54AM

17
#2375 - Blake Tereau / @BlakeTereau

08/11/2015 at 02:57AM

17
#2376 - Jinzhou Zhang / @jinzhouz

09/02/2015 at 09:51AM

17
#2377 - Andrew D. Wong / @andrewdwong

09/02/2015 at 03:13PM

17
#2378 - Tamas Gal (Tom) / @tamasgal

09/13/2015 at 07:01PM

17
#2379 - Dima / @diarworld

09/30/2015 at 03:50PM

17
#2380 - Darren Tsung / @darrentsung

10/02/2015 at 09:22PM

17
#2381 - Phil Ting / @philipjting

11/15/2015 at 06:12AM

17
#2382 - Julian / @JulianGindi

02/27/2016 at 08:26PM

17
#2383 - Chenut Ludovic / @7Brwa7

03/31/2016 at 08:22PM

17
#2384 - Simon / @0xa5a5

04/02/2016 at 10:34AM

17
#2385 - Adam Collins / @adc613

04/26/2016 at 11:24PM

17
#2386 - Tom / @CronutFacts

05/13/2016 at 01:46AM

17
#2387 - niels aamloos / @AamloosNiels

05/28/2016 at 03:37PM

17
#2388 - Banos / @deep_spoon

07/03/2016 at 01:05PM

17
#2389 - Amory Schlender / @schlamory

07/08/2016 at 06:08AM

17
#2390 - Sp3000 / @sp3katron

08/23/2016 at 09:27AM

17
#2391 - 이선협 / @kciter

09/01/2016 at 06:44AM

17
#2392 - Rizart Dokollari / @rdokollari

09/19/2016 at 12:53PM

17
#2393 - travv0 / @travv0

10/03/2016 at 02:39PM

17
#2394 - claytron / @claytron

10/05/2016 at 01:53PM

17
#2395 - TweetDreams / @TweetMusicians

10/08/2016 at 09:58AM

17
#2396 - Дмитрий Кремез / @dima_kremez

10/23/2016 at 09:14PM

17
#2397 - quiggy🌹 / @quiggy

10/26/2016 at 06:30PM

17
#2398 - Chris Cummings / @mistahcummings

10/31/2016 at 12:22AM

17
#2399 - Juancho JuAnCh0 / @JuAnCh0p

11/08/2016 at 12:38PM

17
#2400 - Michał Dytko / @DytkoM

12/19/2016 at 08:00AM