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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
15
#1231 - Tyler HT Cipriani / @tylercipriani

08/26/2013 at 10:38PM

15
#1232 - Leif Bladt / @leifbladt

08/28/2013 at 08:53AM

15
#1233 - Tony Han / @tony612_han

08/28/2013 at 02:53PM

15
#1234 - Pablo Caro / @pcaro90

08/31/2013 at 08:06PM

15
#1235 - Arturo Escaip / @arturoescaip

09/01/2013 at 09:44AM

15
#1236 - Toto l'haricot / @nico_le_terribl

09/05/2013 at 02:34PM

15
#1237 - Kerson Hsiao / @KersonHsiao

09/09/2013 at 10:50AM

15
#1238 - Rafa Garcia / @fafa

09/11/2013 at 06:05PM

15
#1239 - Trevor Powell / @DoomedBunnies

09/12/2013 at 06:37AM

15
#1240 - Leonel Gasparrini / @jlgasparrini

09/17/2013 at 11:25PM

15
#1241 - brett / @brettyukich

09/18/2013 at 09:31AM

15
#1242 - r / @tricosahedron

09/20/2013 at 11:32PM

15
#1243 - Sinclair Desaud / @sdesaud

09/25/2013 at 07:43PM

15
#1244 - Ting / @Dsaztaz

09/27/2013 at 07:27AM

15
#1245 - nona urbiz / @nospampleasemam

09/28/2013 at 07:44AM

15
#1246 - hiding / @I_haveno_name

10/01/2013 at 11:38AM

15
#1247 - Ignat Skoryh / @ignat

10/11/2013 at 12:04PM

15
#1248 - Monroe Walker / @monroewlkr

10/17/2013 at 12:47AM

15
#1249 - Robert Rosolek / @robertrosolek

10/18/2013 at 09:12AM

15
#1250 - bunnies president / @bunnies4p

10/22/2013 at 01:18PM

15
#1251 - Roger Bongers / @RogerBongers

10/23/2013 at 01:56AM

15
#1252 - Marc Dix / @marcdix

10/23/2013 at 07:34PM

15
#1253 - James O Smith / @josmith4242

10/23/2013 at 08:35PM

15
#1254 - A. N. / @arez42

10/24/2013 at 05:33AM

15
#1255 - John Boyd / @theboydvoid

10/25/2013 at 12:21AM

15
#1256 - Jonas Granquist / @jonasgranquist

10/25/2013 at 03:25PM

15
#1257 - Rohan Orton / @rohan_orton

10/26/2013 at 10:30PM

15
#1258 - Fnord Everywhere / @FnordE

10/30/2013 at 01:22PM

15
#1259 - Balthamos / @balthamos89

11/02/2013 at 01:27AM

15
#1260 - satchmorun / @satchmorun

11/03/2013 at 06:43PM