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

3535 active golfers, 11368 entries

Leaderboard (lowest score wins):
22
#3151 - Martin Bakiev / @mrafcho001

09/25/2013 at 03:52AM

22
#3152 - Hieu M. Nguyen / @ngnmhieu

10/03/2013 at 03:54AM

22
#3153 - Stephen Kandl / @skandl

10/22/2013 at 09:47PM

22
#3154 - Shaun / @shaunbutler

11/05/2013 at 02:16AM

22
#3155 - rubberfreak / @rubberfreak

11/06/2013 at 07:45PM

22
#3156 - Adam / @eightym

12/12/2013 at 04:02AM

22
#3157 - bhupendra singh / @bhups_1983

12/20/2013 at 09:12AM

22
#3158 - A / @eagleclaw6

12/25/2013 at 02:47AM

22
#3159 - M K / @max_k42

12/30/2013 at 12:59PM

22
#3160 - Arto Vuori / @dhpe

01/01/2014 at 05:25PM

22
#3161 - 🐙 / @ejnbo

01/18/2014 at 06:54PM

22
#3162 - LumberCoder / @LuRsT

01/28/2014 at 06:15PM

22
#3163 - Kevin Kuchta / @kkuchta

01/28/2014 at 11:03PM

22
#3164 - Luiz Geovani Vier / @lgvier

01/29/2014 at 06:37AM

22
#3165 - Andrea Agosti / @cifvts

01/29/2014 at 09:12AM

22
#3166 - Lavkesh / @OloglogN

01/29/2014 at 12:01PM

22
#3167 - Franck Rethore / @franck_re

02/02/2014 at 07:25PM

22
#3168 - Juan Aguero / @juansta

02/03/2014 at 04:06AM

22
#3169 - Vasil Mikhalenya / @bazillek

02/13/2014 at 04:13PM

22
#3170 - pawelmhm / @pawelmhm

03/14/2014 at 05:43PM

22
#3171 - Benoit d'Oncieu / @bdoncieu

05/21/2014 at 02:36PM

22
#3172 - Apostolis Hardalias / @hardalias

05/24/2014 at 12:23PM

22
#3173 - Мосх Яра / @JaroslavUsenko

06/19/2014 at 01:47PM

22
#3174 - Bryan Rathouz / @BryanRathouz

07/03/2014 at 06:50PM

22
#3175 - Jacob Joaquin / @JacobJoaquin

07/14/2014 at 02:29AM

22
#3176 - Michael Limiero / @michaellimiero

07/15/2014 at 01:11AM

22
#3177 - AA / @stonewareslord

07/16/2014 at 03:16AM

22
#3178 - luke / @lukezhangstudio

07/20/2014 at 08:13PM

22
#3179 - Justin Knag / @justinknag

08/28/2014 at 11:39AM

22
#3180 - Collin Richards / @MrBallinCollin

11/09/2014 at 10:07AM