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

3976 active golfers, 12991 entries

Leaderboard (lowest score wins):
21
#3511 - Anthony GRASSIOT / @antograssiot

05/05/2019 at 07:30AM

21
#3512 - TheMagzuz / @DamMarkus

05/24/2019 at 03:22PM

21
#3513 - albalitz / @_albalitz

06/04/2019 at 02:26PM

21
#3514 - Am Jam / @LoneJam

06/11/2019 at 08:43PM

21
#3515 - Andrew Blokzyl / @linuxKd

08/29/2019 at 09:18PM

21
#3516 - 煮沸的白開水 / @season_303030

12/02/2019 at 02:42PM

21
#3517 - Marten Ringwelski / @Marteon27

12/07/2019 at 07:03PM

21
#3518 - Joe Farnsworth / @JoeFarnsworth

03/26/2020 at 03:02AM

21
#3519 - bigsystem / @bigsystem2

05/28/2020 at 03:07PM

21
#3520 - Kieran / @Kieran39992130

06/02/2020 at 05:50AM

21
#3521 - tetsuW / @wakatetsu59

07/20/2020 at 11:35PM

21
#3522 - Yondonjamts Ganzorig / @yondonjamts_g

11/15/2020 at 11:20AM

21
#3523 - John Doe / @JohnDoe75830353

12/22/2020 at 12:05AM

21
#3524 - 방일우 / @CD5PpB36ZR5kWtk

01/07/2021 at 12:57AM

21
#3525 - yxke / @_yxke

01/17/2021 at 01:44AM

21
#3526 - Иван / @wansmer

04/20/2023 at 10:19PM

21
#3527 - Gerard Keane / @gerardkeane

05/16/2024 at 09:31AM

21
#3528 - Alexander Groth / @alexander-walkingtreegames

05/23/2024 at 10:15AM

22
#3529 - Allan Caffee / @AllanCaffee

05/17/2013 at 12:16AM

22
#3530 - Adelar S. Queiróz / @adelarsq

05/29/2013 at 02:29AM

22
#3531 - Endel Dreyer / @endel

06/30/2013 at 04:22AM

22
#3532 - Matthieu Honel / @ocus

07/08/2013 at 03:27PM

22
#3533 - Michael Victor Zink / @mvzink

07/11/2013 at 01:23AM

22
#3534 - jessepye / @jessepye

07/19/2013 at 09:17PM

22
#3535 - Steffen Dienst / @sdienst

07/23/2013 at 07:40AM

22
#3536 - joinvimgolf / @joinvimgolf

08/08/2013 at 04:13PM

22
#3537 - Jesse Fisher / @jessecfisher

08/24/2013 at 04:02AM

22
#3538 - Hachez Floran / @FloranHachez

09/02/2013 at 04:08PM

22
#3539 - Martin Bakiev / @mrafcho001

09/25/2013 at 03:52AM

22
#3540 - Hieu M. Nguyen / @ngnmhieu

10/03/2013 at 03:54AM