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
#2521 - vito / @vito49999722

08/01/2020 at 07:54AM

16
#2522 - Sebastian W. / @Sebasti91439242

09/01/2020 at 11:45PM

16
#2523 - Robert Verst / @r_verst

09/02/2020 at 11:23AM

16
#2524 - Luc Kien Hang / @luckienhang

09/04/2020 at 01:49AM

16
#2525 - Muffin / @Muffin91707986

09/05/2020 at 09:59AM

16
#2526 - unx / @u73999117

09/28/2020 at 02:02AM

16
#2527 - The Valencian Dev / @thevalenciandev

10/12/2020 at 10:31AM

16
#2528 - Henry MATHEISEN / @hmatheisen

10/27/2020 at 01:37PM

16
#2529 - Jordan Joe Watson / @jordanjoewatson

12/02/2020 at 07:59PM

16
#2530 - Bharath / @Bharath15952517

12/13/2020 at 04:15PM

16
#2531 - dummy acc / @__dummy_acc

01/02/2021 at 02:30AM

16
#2532 - Björn Struckmeier / @BjrnStruckmeie1

01/04/2021 at 12:52PM

16
#2533 - Anh Duc TRAN / @__OwlBlaster__

01/09/2021 at 01:09AM

16
#2534 - zapakh / @zapakh

01/21/2021 at 05:19AM

16
#2535 - Richard Leigh Davies / @RichardDaviesAI

01/23/2021 at 06:36PM

16
#2536 - Leon Si / @leonzalion

01/24/2021 at 02:59AM

16
#2537 - Leo Winters / @LeoPWinters

02/22/2021 at 10:42AM

16
#2538 - rappenstein2 / @rappenstein2

01/16/2022 at 10:44PM

16
#2539 - Olivier Bégassat / @zk_evm

06/15/2023 at 03:04PM

16
#2540 - John Kershaw / @johnkershaw

04/21/2024 at 05:49PM

16
#2541 - KhaAdam / @KhaAdam

08/08/2024 at 12:06PM

16
#2542 - Diwakar Singh Parmar / @parmardiwakar150

08/31/2024 at 10:16AM

16
#2543 - UrbanNinja1010 / @UrbanNinja1010

04/04/2025 at 04:06PM

17
#2544 - Christos Kontas / @ckontas

05/15/2013 at 04:39PM

17
#2545 - Dhruva Sagar / @dhruvasagar

05/22/2013 at 09:42AM

17
#2546 - Simon Walker / @srwalker101

05/30/2013 at 10:49AM

17
#2547 - Matt Robbins / @mcrmfc

06/19/2013 at 09:31AM

17
#2548 - Kyle Partridge / @partkyle

06/24/2013 at 05:39PM

17
#2549 - Alexey / @kramar42

07/04/2013 at 01:08PM

17
#2550 - curist / @curist

07/08/2013 at 08:08AM