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

3560 active golfers, 11444 entries

Leaderboard (lowest score wins):
18
#2611 - Tith Chantara / @TithChantara

01/12/2017 at 11:03PM

18
#2612 - Riz Joj / @rizjoj

02/06/2017 at 02:45AM

18
#2613 - Mads Jensen / @mads_je

02/24/2017 at 01:58PM

18
#2614 - saffronsnail / @saffsnail

03/16/2017 at 12:04AM

18
#2615 - 20speedvegan / @ashkevinm

04/11/2017 at 07:24PM

18
#2616 - Henns Woerst / @HennsW

04/13/2017 at 05:46PM

18
#2617 - Codingpotato / @codingpotato

05/07/2017 at 08:56AM

18
#2618 - Chicuella / @chicuellahere

05/19/2017 at 09:20AM

18
#2619 - Schley Barrack / @BarrackSchley

05/19/2017 at 07:00PM

18
#2620 - Anders Schramm / @AndersSchramm

05/22/2017 at 10:25PM

18
#2621 - Tom P / @TomP03837155

06/09/2017 at 09:53AM

18
#2622 - John Smith / @john828495

06/16/2017 at 02:29PM

18
#2623 - John Smith / @johns32768

06/16/2017 at 06:49PM

18
#2624 - Paul Inc / @hiniol1982

07/17/2017 at 07:59PM

18
#2625 - Tom Taylor / @larsonsduck

07/24/2017 at 08:48AM

18
#2626 - Netznarkose / @netznarkose

07/29/2017 at 08:53AM

18
#2627 - D Fenec / @fenec230

08/18/2017 at 11:24PM

18
#2628 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 01:39PM

18
#2629 - YaNic / @DJ_Yanic

08/31/2017 at 06:12PM

18
#2630 - lujianmei / @lujianmei

09/05/2017 at 12:31PM

18
#2631 - Joël Christ / @jjlchrist

09/14/2017 at 12:33PM

18
#2632 - Marco Bompani / @BompaniMarco

09/15/2017 at 01:59PM

18
#2633 - Kevin / @PurpSchkurp

10/15/2017 at 10:59AM

18
#2634 - Philippe / @cloonn1

11/03/2017 at 09:09PM

18
#2635 - Koo Zhengqun / @zhengqunkoo

11/12/2017 at 01:43AM

18
#2636 - šh!ßh!dø / @shishikatsu

11/19/2017 at 12:35PM

18
#2637 - 萩原 / @thunderbird258

11/19/2017 at 12:38PM

18
#2638 - Mike Harris / @MikeMJHarris

11/20/2017 at 12:56PM

18
#2639 - eiladin / @eiladin

12/08/2017 at 01:52PM

18
#2640 - Luke Parsons / @lukeparsons

12/28/2017 at 07:09PM