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

3533 active golfers, 11363 entries

Leaderboard (lowest score wins):
21
#3001 - André Matheus / @andreroquem

12/20/2013 at 06:03PM

21
#3002 - Bobby Burden / @bobbyrburden

12/20/2013 at 07:49PM

21
#3003 - pikaren / @REALpikaren

12/21/2013 at 02:01AM

21
#3004 - Salleyron Julien / @juguul

12/29/2013 at 04:55PM

21
#3005 - Tan Le ☺ / @tancnle

01/02/2014 at 06:34AM

21
#3006 - Jan Willem / @jagij

01/02/2014 at 01:38PM

21
#3007 - Matt Parnell / @parnmattdev

01/02/2014 at 09:56PM

21
#3008 - a / @asdfsdafdsfdsaf

01/04/2014 at 12:08AM

21
#3009 - Sven Hedin / @HedinR7

01/11/2014 at 01:13PM

21
#3010 - Tudor Barbu / @motanelu

01/11/2014 at 05:13PM

21
#3011 - Shaun Bloom / @blooms34

01/16/2014 at 07:38PM

21
#3012 - Justin Johnson / @j26774

01/17/2014 at 04:29PM

21
#3013 - changling / @Lspacewalker

01/21/2014 at 10:34PM

21
#3014 - markos rendell / @markosrendell

01/22/2014 at 02:41PM

21
#3015 - Jae Won Kim / @jaewone

01/26/2014 at 06:20PM

21
#3016 - Johan Ask / @snobbslakt

01/28/2014 at 02:32PM

21
#3017 - lukeasrodgers / @lukeasrodgers

01/28/2014 at 09:53PM

21
#3018 - ひげまにや / @higemaniya

01/29/2014 at 02:33AM

21
#3019 - Larijohn Adorable / @jbpnoy6fifty

01/29/2014 at 05:16AM

21
#3020 - Matt Brown / @Gowabash

01/30/2014 at 12:10AM

21
#3021 - Nick Austin / @NickAustin13

01/30/2014 at 05:55PM

21
#3022 - Tomasz Janeczko / @tomekjaneczko

01/31/2014 at 02:01AM

21
#3023 - makuchy / @makuchy

02/01/2014 at 12:48PM

21
#3024 - Zudov / @zudov_me

02/02/2014 at 09:27PM

21
#3025 - Kerem Bozdaş / @krmbzds

02/03/2014 at 06:36AM

21
#3026 - Christopher Hebert / @chebertapps

02/03/2014 at 09:05AM

21
#3027 - Andrey Kolomoets / @andreyk_mad

02/03/2014 at 12:30PM

21
#3028 - Chris Yuen / @kizzx2

02/06/2014 at 09:22AM

21
#3029 - Tojo Chacko / @tojochacko

02/19/2014 at 08:27PM

21
#3030 - Jon Wade / @jh_wade

02/23/2014 at 09:05PM