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

3731 active golfers, 12073 entries

Leaderboard (lowest score wins):
17
#2491 - David Orr / @dorr91

03/23/2015 at 05:53PM

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

03/25/2015 at 09:30AM

17
#2493 - Raj / @brshenoy

04/02/2015 at 10:01PM

17
#2494 - talineo / @talineo_

04/10/2015 at 10:33PM

17
#2495 - Rathrio / @Rathrio

04/29/2015 at 04:40PM

17
#2496 - Alex Bartol / @alexbartol

05/07/2015 at 05:32PM

17
#2497 - luffy / @raxcoi

05/13/2015 at 07:51PM

17
#2498 - Hervé Rouault / @hrouault

06/09/2015 at 06:17PM

17
#2499 - Cakejoke / @Cakejoke

07/05/2015 at 02:53PM

17
#2500 - CoCo Loco / @lc2817

08/02/2015 at 09:54AM

17
#2501 - Blake Tereau / @BlakeTereau

08/11/2015 at 02:57AM

17
#2502 - Jinzhou Zhang / @jinzhouz

09/02/2015 at 09:51AM

17
#2503 - Andrew D. Wong / @andrewdwong

09/02/2015 at 03:13PM

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

09/13/2015 at 07:01PM

17
#2505 - Dima / @diarworld

09/30/2015 at 03:50PM

17
#2506 - Darren Tsung / @darrentsung

10/02/2015 at 09:22PM

17
#2507 - Phil Ting / @philipjting

11/15/2015 at 06:12AM

17
#2508 - Julian / @JulianGindi

02/27/2016 at 08:26PM

17
#2509 - Chenut Ludovic / @7Brwa7

03/31/2016 at 08:22PM

17
#2510 - Simon / @0xa5a5

04/02/2016 at 10:34AM

17
#2511 - Adam Collins / @adc613

04/26/2016 at 11:24PM

17
#2512 - Tom / @CronutFacts

05/13/2016 at 01:46AM

17
#2513 - niels aamloos / @AamloosNiels

05/28/2016 at 03:37PM

17
#2514 - Banos / @deep_spoon

07/03/2016 at 01:05PM

17
#2515 - Amory Schlender / @schlamory

07/08/2016 at 06:08AM

17
#2516 - Sp3000 / @sp3katron

08/23/2016 at 09:27AM

17
#2517 - 이선협 / @kciter

09/01/2016 at 06:44AM

17
#2518 - Rizart Dokollari / @rdokollari

09/19/2016 at 12:53PM

17
#2519 - travv0 / @travv0

10/03/2016 at 02:39PM

17
#2520 - claytron / @claytron

10/05/2016 at 01:53PM