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

3983 active golfers, 13024 entries

Leaderboard (lowest score wins):
21
#3361 - Jose Javier Trapero / @jjaviertb

08/29/2013 at 07:05PM

21
#3362 - The pilgrim / @panpielgrzym

09/10/2013 at 08:33PM

21
#3363 - Felix Angerborn / @FelixAngerborn

09/20/2013 at 11:10PM

21
#3364 - James T. Huggett / @Jmeshka

09/26/2013 at 09:24AM

21
#3365 - venkatakrishnan / @venkatk_

10/03/2013 at 09:02PM

21
#3366 - Greg Spurrier / @gregspurrier

10/09/2013 at 11:12PM

21
#3367 - Ori Kremer / @orikremer

10/25/2013 at 08:07PM

21
#3368 - Jay Rajput / @jayrajput

10/26/2013 at 02:00PM

21
#3369 - Ismail Tigrek / @IsmailTigrek

10/27/2013 at 08:38PM

21
#3370 - Derek Louie / @dklouie

10/31/2013 at 06:51PM

21
#3371 - Anthony / @Scatchell

11/07/2013 at 02:06PM

21
#3372 - Andrew Ruder / @aeruder

11/07/2013 at 04:16PM

21
#3373 - Alberto Sadde / @titicox

11/09/2013 at 09:55PM

21
#3374 - Adam Mulligan / @amulligan

11/10/2013 at 07:41PM

21
#3375 - Matteo Giaccone / @Mat_Jack1

11/13/2013 at 09:46PM

21
#3376 - Alexander Scherbinin / @realmyst

11/15/2013 at 03:32PM

21
#3377 - fehtrar / @fehtrar

11/30/2013 at 02:13AM

21
#3378 - phalkunz / @phalkunz

12/03/2013 at 03:29AM

21
#3379 - Wayne Franklin / @waf1waf

12/03/2013 at 02:18PM

21
#3380 - Alex Rutkowski / @alexmarie84

12/04/2013 at 10:09PM

21
#3381 - Rémi Labeyrie / @rlabeyrie

12/06/2013 at 03:26PM

21
#3382 - Zach Kemp / @zvksf

12/13/2013 at 08:39AM

21
#3383 - Hersh Singh / @HershSingh

12/15/2013 at 06:12PM

21
#3384 - André Matheus / @andreroquem

12/20/2013 at 06:03PM

21
#3385 - Bobby Burden / @bobbyrburden

12/20/2013 at 07:49PM

21
#3386 - pikaren / @REALpikaren

12/21/2013 at 02:01AM

21
#3387 - Salleyron Julien / @juguul

12/29/2013 at 04:55PM

21
#3388 - Tan Le ☺ / @tancnle

01/02/2014 at 06:34AM

21
#3389 - Jan Willem / @jagij

01/02/2014 at 01:38PM

21
#3390 - Matt Parnell / @parnmattdev

01/02/2014 at 09:56PM