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

3560 active golfers, 11444 entries

Leaderboard (lowest score wins):
17
#2401 - ZW / @ZW73226885

01/23/2017 at 10:37PM

17
#2402 - Matt Walsh / @wattmalsh

02/02/2017 at 10:22PM

17
#2403 - Dan Prince / @danj_prince

02/25/2017 at 12:37AM

17
#2404 - Cheer / @yougec

02/27/2017 at 09:24AM

17
#2405 - Ilya Shakirov / @aelaau

03/20/2017 at 08:27AM

17
#2406 - Kevin K / @okkays

04/17/2017 at 08:28PM

17
#2407 - Pekka / @avainasiakas

04/22/2017 at 08:04PM

17
#2408 - kkh / @kkhdlut

06/08/2017 at 02:56PM

17
#2409 - Daniel / @0x9ABC

08/15/2017 at 03:59PM

17
#2410 - billy montgomery / @billymont

10/04/2017 at 08:07AM

17
#2411 - sehe / @sehetw

10/10/2017 at 01:32PM

17
#2412 - Thai Pangsakulyanont / @dtinth

10/29/2017 at 07:15PM

17
#2413 - nikos efthias / @nikosef8ias

01/12/2018 at 03:10AM

17
#2414 - slicklash / @slicklash

03/10/2018 at 08:44PM

17
#2415 - Anonymous / @Anonymous31658

03/27/2018 at 03:39AM

17
#2416 - teeheewa / @Heewa

03/27/2018 at 02:52PM

17
#2417 - Skyler Soss / @Skyb0rg

03/28/2018 at 12:52AM

17
#2418 - Matt Robinson / @mmrobins

03/28/2018 at 10:08PM

17
#2419 - Matt Fister / @Mistah_Fistah

04/18/2018 at 04:49AM

17
#2420 - Vladimir Volkov / @neitrin

05/02/2018 at 03:11PM

17
#2421 - Kevin Durand / @kdthefakemvp

05/21/2018 at 01:46PM

17
#2422 - Tom Ient / @tom_ient

05/24/2018 at 06:19PM

17
#2423 - Jeff VanDyke / @jeffv_a216

07/10/2018 at 06:36PM

17
#2424 - Владислав / @papa_gusserl

07/26/2018 at 08:02PM

17
#2425 - Stefan Frid / @FridStefan

08/17/2018 at 08:25PM

17
#2426 - daniel / @daniel31464605

08/22/2018 at 08:04PM

17
#2427 - Frank Rifk / @r1fk

08/26/2018 at 04:50PM

17
#2428 - masterpi / @masterpi16

09/22/2018 at 08:58PM

17
#2429 - Drill / @DrillTroll

09/24/2018 at 10:17PM

17
#2430 - foobarbazqux12345 / @foobarbazqux121

10/12/2018 at 05:18PM