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

3372 active golfers, 10842 entries

Leaderboard (lowest score wins):
14
#181 - Paul Liu / @automorphism

12/17/2013 at 05:06PM

14
#182 - Nathaniel Hoag / @n8nl

12/18/2013 at 01:28AM

14
#183 - Jacob Niehus / @wilywampa

12/18/2013 at 05:01AM

14
#184 - Christian Welle / @welle_tw

12/18/2013 at 11:00PM

14
#185 - Adam Bell / @adamgbell

12/20/2013 at 02:31AM

14
#186 - Greg Humphreys / @humper

12/20/2013 at 02:31AM

14
#187 - Nicolas Ouellet / @ashlebede

12/20/2013 at 04:19AM

14
#188 - Joshua Appelman / @JoshuaAppelman

12/20/2013 at 07:41PM

14
#189 - Mike Ballou / @ballou88

12/20/2013 at 11:34PM

14
#190 - winterlight / @winterlight4

12/22/2013 at 02:00PM

14
#191 - George C Tsiagalakis / @gts_tw

12/23/2013 at 03:07PM

14
#192 - Thiago Prado / @5k1pp3r

12/25/2013 at 12:05PM

14
#193 - chilicuil / @chilicuil

12/26/2013 at 08:21PM

14
#194 - Herrington Darkholme / @nonamesheep

12/27/2013 at 09:25AM

14
#195 - Alex Colson / @alexcolson

12/28/2013 at 03:42AM

14
#196 - Rado Kirov / @radokirov

12/29/2013 at 06:21AM

14
#197 - Son of Bongo / @bpcode

01/01/2014 at 01:50PM

14
#198 - Yann Moisan / @YannMoisan

01/01/2014 at 07:51PM

14
#199 - Fabien Cazenave / @fabi1cazenave

01/01/2014 at 11:29PM

14
#200 - Gennadiy Leyfer / @gleyfer

01/02/2014 at 08:52AM

14
#201 - Alessandro Lisander / @wuiimu

01/04/2014 at 03:42PM

14
#202 - Greg Jebb / @jebbster

01/06/2014 at 08:18PM

14
#203 - oliver mueller / @marcontwit

01/07/2014 at 10:17AM

14
#204 - Joel Gärtner / @Jeerok

01/08/2014 at 05:54PM

14
#205 - alex scott / @4l3xsc0tt

01/09/2014 at 12:47PM

14
#206 - Chris Brown / @engineercyb

01/10/2014 at 05:49PM

14
#207 - Jeffrey Van Alstine / @JeffreyVanAlsti

01/11/2014 at 02:07AM

14
#208 - Akash Agrawal / @akshagrwl

01/11/2014 at 06:39AM

14
#209 - John / @BerlinSchneider

01/14/2014 at 06:15AM

14
#210 - Andreas Källberg / @Anka213

01/16/2014 at 10:07PM