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

3904 active golfers, 12678 entries

Leaderboard (lowest score wins):
21
#3301 - Ismail Tigrek / @IsmailTigrek

10/27/2013 at 08:38PM

21
#3302 - Derek Louie / @dklouie

10/31/2013 at 06:51PM

21
#3303 - Anthony / @Scatchell

11/07/2013 at 02:06PM

21
#3304 - Andrew Ruder / @aeruder

11/07/2013 at 04:16PM

21
#3305 - Alberto Sadde / @titicox

11/09/2013 at 09:55PM

21
#3306 - Adam Mulligan / @amulligan

11/10/2013 at 07:41PM

21
#3307 - Matteo Giaccone / @Mat_Jack1

11/13/2013 at 09:46PM

21
#3308 - Alexander Scherbinin / @realmyst

11/15/2013 at 03:32PM

21
#3309 - fehtrar / @fehtrar

11/30/2013 at 02:13AM

21
#3310 - phalkunz / @phalkunz

12/03/2013 at 03:29AM

21
#3311 - Wayne Franklin / @waf1waf

12/03/2013 at 02:18PM

21
#3312 - Alex Rutkowski / @alexmarie84

12/04/2013 at 10:09PM

21
#3313 - Rémi Labeyrie / @rlabeyrie

12/06/2013 at 03:26PM

21
#3314 - Zach Kemp / @zvksf

12/13/2013 at 08:39AM

21
#3315 - Hersh Singh / @HershSingh

12/15/2013 at 06:12PM

21
#3316 - André Matheus / @andreroquem

12/20/2013 at 06:03PM

21
#3317 - Bobby Burden / @bobbyrburden

12/20/2013 at 07:49PM

21
#3318 - pikaren / @REALpikaren

12/21/2013 at 02:01AM

21
#3319 - Salleyron Julien / @juguul

12/29/2013 at 04:55PM

21
#3320 - Tan Le ☺ / @tancnle

01/02/2014 at 06:34AM

21
#3321 - Jan Willem / @jagij

01/02/2014 at 01:38PM

21
#3322 - Matt Parnell / @parnmattdev

01/02/2014 at 09:56PM

21
#3323 - a / @asdfsdafdsfdsaf

01/04/2014 at 12:08AM

21
#3324 - Sven Hedin / @HedinR7

01/11/2014 at 01:13PM

21
#3325 - Tudor Barbu / @motanelu

01/11/2014 at 05:13PM

21
#3326 - Shaun Bloom / @blooms34

01/16/2014 at 07:38PM

21
#3327 - Justin Johnson / @j26774

01/17/2014 at 04:29PM

21
#3328 - changling / @Lspacewalker

01/21/2014 at 10:34PM

21
#3329 - markos rendell / @markosrendell

01/22/2014 at 02:41PM

21
#3330 - Jae Won Kim / @jaewone

01/26/2014 at 06:20PM