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):
22
#3211 - leziak2 / @leziak2

12/24/2018 at 01:30AM

22
#3212 - Kyle Safran / @kylesafran

01/19/2019 at 02:09AM

22
#3213 - Patrick Lavin / @LavinComputes

01/31/2019 at 03:30PM

22
#3214 - Thilo Rörig / @scholith

02/21/2019 at 09:31PM

22
#3215 - DanSnow / @dododavid006

03/06/2019 at 02:24AM

22
#3216 - Березницкий Вадим / @vad1mster

07/06/2019 at 06:11PM

22
#3217 - mrrdl / @mrrdl5

07/26/2019 at 06:02PM

22
#3218 - vim_ninja / @NinjaVim

09/14/2019 at 09:46PM

23
#3219 - くま55 / @kumack55

05/16/2013 at 12:56AM

23
#3220 - Lyuben Petrov / @LyubenP

07/01/2013 at 07:48PM

23
#3221 - Andrew Hlavats / @farthestworld

07/10/2013 at 06:35AM

23
#3222 - Jonasz Kaktusiewicz / @kaktusiewicz

07/11/2013 at 03:51PM

23
#3223 - Luke Walsh / @boyfromkansas

07/11/2013 at 08:22PM

23
#3224 - Asterlune / @Asterlune

07/17/2013 at 07:32AM

23
#3225 - Sheng / @shenghis

08/25/2013 at 07:47PM

23
#3226 - Forrest Williams / @Serroft

09/18/2013 at 09:07PM

23
#3227 - zaretsky sergey / @zaretskysa

09/29/2013 at 09:02AM

23
#3228 - Jin Pan / @JinPan94

10/09/2013 at 04:03AM

23
#3229 - Sami Niiranen / @saminiir

10/13/2013 at 08:41AM

23
#3230 - Dmitry Gruzd / @dgruzd

10/25/2013 at 07:10PM

23
#3231 - Hamish Hutchings / @hamhut1066

10/27/2013 at 10:40AM

23
#3232 - Maksymilian Kołodzie / @maxkolodziej

10/31/2013 at 10:27PM

23
#3233 - Dave Wilde / @d34dh0r53

11/04/2013 at 06:01AM

23
#3234 - Brendan / @btobolaski

11/05/2013 at 07:43PM

23
#3235 - Sebastian Olsson / @Sebelino7

11/06/2013 at 04:45AM

23
#3236 - T Kat / @sum_tom_kat

11/12/2013 at 10:46AM

23
#3237 - Chris Lott / @passiontask

11/14/2013 at 05:53PM

23
#3238 - Chun-Ho Hung / @chhung6

12/01/2013 at 09:51AM

23
#3239 - ixplode / @ixplode

12/02/2013 at 06:12AM

23
#3240 - 湾ちゃん~♪ / @atifans

12/13/2013 at 05:38PM