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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
16
#2281 - Chuck Newport / @swap_chuck

10/14/2015 at 09:10PM

16
#2282 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 05:02PM

16
#2283 - Árpád Krejczinger / @krarpi

11/02/2015 at 04:20PM

16
#2284 - Puda / @Puda2sRachi

11/11/2015 at 03:13PM

16
#2285 - territorialmale / @territorialmale

11/26/2015 at 12:20PM

16
#2286 - Mendel Simon / @agentms11

12/07/2015 at 09:48PM

16
#2287 - Sean Stout / @s183s657

12/09/2015 at 08:02AM

16
#2288 - lorentrogers / @lorentrogers

12/10/2015 at 03:06AM

16
#2289 - Paulo H Baumann / @PauloBaumann

12/14/2015 at 01:46AM

16
#2290 - Paulo Romeira / @pauloromeira

12/21/2015 at 12:29AM

16
#2291 - Andrii Maksai / @AMaksai

12/21/2015 at 11:06PM

16
#2292 - Izabel Jelenić / @IzabelJelenic

12/22/2015 at 09:07AM

16
#2293 - Bingyunx / @bingyunx

12/25/2015 at 11:30AM

16
#2294 - Brian C Sparks / @briancsparks

12/28/2015 at 02:47PM

16
#2295 - Jeff Chao / @angrammarpro

12/28/2015 at 08:16PM

16
#2296 - Brian D. Goad / @bbbco

01/07/2016 at 04:24PM

16
#2297 - amu uma / @amuumaamuuma

01/12/2016 at 05:15AM

16
#2298 - Mathias / @wizhie

01/15/2016 at 09:42PM

16
#2299 - Austin Wood / @indiesquidge

01/16/2016 at 04:39PM

16
#2300 - Durga Swaroop Perla / @durgaswaroop

02/04/2016 at 12:27PM

16
#2301 - Alpha Centauri B / @alphacentaurib

02/04/2016 at 06:15PM

16
#2302 - Alex J. Ahraus / @fanaugen

02/08/2016 at 09:32PM

16
#2303 - ben kavanagh / @bkava

02/18/2016 at 06:16AM

16
#2304 - udreki / @udreki

02/20/2016 at 08:49AM

16
#2305 - Jonas Sundberg / @J_Sund

02/23/2016 at 03:19PM

16
#2306 - Antony Garand / @AntoGarand

02/24/2016 at 08:39PM

16
#2307 - ɹǝsnɐɥsıʇnɹ uoɾ / @JonRutis

02/25/2016 at 03:16PM

16
#2308 - Robert Mosher / @rcmosher

02/26/2016 at 02:18AM

16
#2309 - leroy / @leroyalien

02/27/2016 at 06:27AM

16
#2310 - Axel Forsman / @axelf41

03/02/2016 at 04:10PM