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

3968 active golfers, 12966 entries

Leaderboard (lowest score wins):
14
#211 - Greg Humphreys / @humper

12/20/2013 at 02:31AM

14
#212 - Nicolas Ouellet / @ashlebede

12/20/2013 at 04:19AM

14
#213 - Joshua Appelman / @JoshuaAppelman

12/20/2013 at 07:41PM

14
#214 - Mike Ballou / @ballou88

12/20/2013 at 11:34PM

14
#215 - winterlight / @winterlight4

12/22/2013 at 02:00PM

14
#216 - George C Tsiagalakis / @gts_tw

12/23/2013 at 03:07PM

14
#217 - Thiago Prado / @5k1pp3r

12/25/2013 at 12:05PM

14
#218 - chilicuil / @chilicuil

12/26/2013 at 08:21PM

14
#219 - Herrington Darkholme / @nonamesheep

12/27/2013 at 09:25AM

14
#220 - Alex Colson / @alexcolson

12/28/2013 at 03:42AM

14
#221 - Rado Kirov / @radokirov

12/29/2013 at 06:21AM

14
#222 - Son of Bongo / @bpcode

01/01/2014 at 01:50PM

14
#223 - Yann Moisan / @YannMoisan

01/01/2014 at 07:51PM

14
#224 - Fabien Cazenave / @fabi1cazenave

01/01/2014 at 11:29PM

14
#225 - Gennadiy Leyfer / @gleyfer

01/02/2014 at 08:52AM

14
#226 - Alessandro Lisander / @wuiimu

01/04/2014 at 03:42PM

14
#227 - Greg Jebb / @jebbster

01/06/2014 at 08:18PM

14
#228 - oliver mueller / @marcontwit

01/07/2014 at 10:17AM

14
#229 - Joel Gärtner / @Jeerok

01/08/2014 at 05:54PM

14
#230 - alexscott / @4l3xsc0tt

01/09/2014 at 12:47PM

14
#231 - Chris Brown / @engineercyb

01/10/2014 at 05:49PM

14
#232 - Jeffrey Van Alstine / @JeffreyVanAlsti

01/11/2014 at 02:07AM

14
#233 - Akash Agrawal / @akshagrwl

01/11/2014 at 06:39AM

14
#234 - John / @BerlinSchneider

01/14/2014 at 06:15AM

14
#235 - Andreas Källberg / @Anka213

01/16/2014 at 10:07PM

14
#236 - 黒猫 / @darkfeline

01/17/2014 at 10:35AM

14
#237 - Olivier Lechevalier / @RageZBla

01/19/2014 at 10:48AM

14
#238 - John Amicangelo / @AmicangeloJohn

01/21/2014 at 02:45PM

14
#239 - Thomas / @lslahrs

01/21/2014 at 09:27PM

14
#240 - Travis Millott / @ritherz

01/21/2014 at 11:43PM