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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
15
#1231 - Jason Davidson / @aka_lingy

08/24/2013 at 05:29PM

15
#1232 - Barry Nichols / @Barry_Nichols

08/26/2013 at 07:43AM

15
#1233 - Dan / @dan_winkler

08/26/2013 at 10:52AM

15
#1234 - Tyler HT Cipriani / @tylercipriani

08/26/2013 at 10:38PM

15
#1235 - Leif Bladt / @leifbladt

08/28/2013 at 08:53AM

15
#1236 - Tony Han / @tony612_han

08/28/2013 at 02:53PM

15
#1237 - Pablo Caro / @pcaro90

08/31/2013 at 08:06PM

15
#1238 - Arturo Escaip / @arturoescaip

09/01/2013 at 09:44AM

15
#1239 - Toto l'haricot / @nico_le_terribl

09/05/2013 at 02:34PM

15
#1240 - Kerson Hsiao / @KersonHsiao

09/09/2013 at 10:50AM

15
#1241 - Rafa Garcia / @fafa

09/11/2013 at 06:05PM

15
#1242 - Trevor Powell / @DoomedBunnies

09/12/2013 at 06:37AM

15
#1243 - Leonel Gasparrini / @jlgasparrini

09/17/2013 at 11:25PM

15
#1244 - brett / @brettyukich

09/18/2013 at 09:31AM

15
#1245 - r / @tricosahedron

09/20/2013 at 11:32PM

15
#1246 - Sinclair Desaud / @sdesaud

09/25/2013 at 07:43PM

15
#1247 - Ting / @Dsaztaz

09/27/2013 at 07:27AM

15
#1248 - nona urbiz / @nospampleasemam

09/28/2013 at 07:44AM

15
#1249 - hiding / @I_haveno_name

10/01/2013 at 11:38AM

15
#1250 - Ignat Skoryh / @ignat

10/11/2013 at 12:04PM

15
#1251 - Monroe Walker / @monroewlkr

10/17/2013 at 12:47AM

15
#1252 - Robert Rosolek / @robertrosolek

10/18/2013 at 09:12AM

15
#1253 - bunnies president / @bunnies4p

10/22/2013 at 01:18PM

15
#1254 - Roger Bongers / @RogerBongers

10/23/2013 at 01:56AM

15
#1255 - Marc Dix / @marcdix

10/23/2013 at 07:34PM

15
#1256 - James O Smith / @josmith4242

10/23/2013 at 08:35PM

15
#1257 - A. N. / @arez42

10/24/2013 at 05:33AM

15
#1258 - John Boyd / @theboydvoid

10/25/2013 at 12:21AM

15
#1259 - Jonas Granquist / @jonasgranquist

10/25/2013 at 03:25PM

15
#1260 - Rohan Orton / @rohan_orton

10/26/2013 at 10:30PM