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

3533 active golfers, 11363 entries

Leaderboard (lowest score wins):
21
#3121 - jestem króliczkiem / @karlicoss

07/21/2018 at 07:24AM

21
#3122 - Shea Munion / @sheamunion

07/27/2018 at 09:29PM

21
#3123 - ahutch / @therealahutch

07/31/2018 at 08:34PM

21
#3124 - Lunar Gods Cry Too / @lunarsobs

08/05/2018 at 04:11AM

21
#3125 - Netcraft Reporter / @NetcraftReport1

08/09/2018 at 09:42AM

21
#3126 - n/a / @sicoh395

09/06/2018 at 02:12PM

21
#3127 - Matt Burg / @matsbleurgh

09/12/2018 at 09:09PM

21
#3128 - Jordan / @RiotChomey

09/21/2018 at 09:15PM

21
#3129 - Juliette but spooky / @namebrandloser

10/26/2018 at 10:04PM

21
#3130 - Ackman Syntax Error / @AckmanSux

12/22/2018 at 01:04AM

21
#3131 - Prem Oza / @OzaPrem

01/03/2019 at 11:51AM

21
#3132 - Thomas Branch / @twighk

01/27/2019 at 01:47PM

21
#3133 - 大木建人 / @2357gi

03/29/2019 at 07:59AM

21
#3134 - Anthony GRASSIOT / @antograssiot

05/05/2019 at 07:30AM

21
#3135 - TheMagzuz / @DamMarkus

05/24/2019 at 03:22PM

21
#3136 - albalitz / @_albalitz

06/04/2019 at 02:26PM

21
#3137 - Am Jam / @LoneJam

06/11/2019 at 08:43PM

21
#3138 - Andrew Blokzyl / @linuxKd

08/29/2019 at 09:18PM

22
#3139 - Allan Caffee / @AllanCaffee

05/17/2013 at 12:16AM

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

05/29/2013 at 02:29AM

22
#3141 - Endel Dreyer / @endel

06/30/2013 at 04:22AM

22
#3142 - Matthieu Honel / @ocus

07/08/2013 at 03:27PM

22
#3143 - Michael Victor Zink / @mvzink

07/11/2013 at 01:23AM

22
#3144 - jessepye / @jessepye

07/19/2013 at 09:17PM

22
#3145 - Steffen Dienst / @sdienst

07/23/2013 at 07:40AM

22
#3146 - joinvimgolf / @joinvimgolf

08/08/2013 at 04:13PM

22
#3147 - Jesse Fisher / @jessecfisher

08/24/2013 at 04:02AM

22
#3148 - Hachez Floran / @FloranHachez

09/02/2013 at 04:08PM

22
#3149 - Martin Bakiev / @mrafcho001

09/25/2013 at 03:52AM

22
#3150 - Hieu M. Nguyen / @ngnmhieu

10/03/2013 at 03:54AM