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

3733 active golfers, 12079 entries

Leaderboard (lowest score wins):
18
#2761 - Netznarkose / @netznarkose

07/29/2017 at 08:53AM

18
#2762 - D Fenec / @fenec230

08/18/2017 at 11:24PM

18
#2763 - Marcin Paliwoda / @eukaliptuss

08/25/2017 at 01:39PM

18
#2764 - YaNic / @DJ_Yanic

08/31/2017 at 06:12PM

18
#2765 - lujianmei / @lujianmei

09/05/2017 at 12:31PM

18
#2766 - Joël Christ / @jjlchrist

09/14/2017 at 12:33PM

18
#2767 - Marco Bompani / @BompaniMarco

09/15/2017 at 01:59PM

18
#2768 - Kevin / @PurpSchkurp

10/15/2017 at 10:59AM

18
#2769 - Philippe / @cloonn1

11/03/2017 at 09:09PM

18
#2770 - Koo Zhengqun / @zhengqunkoo

11/12/2017 at 01:43AM

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

11/19/2017 at 12:35PM

18
#2772 - 萩原 / @thunderbird258

11/19/2017 at 12:38PM

18
#2773 - Mike Harris / @MikeMJHarris

11/20/2017 at 12:56PM

18
#2774 - eiladin / @eiladin

12/08/2017 at 01:52PM

18
#2775 - Luke Parsons / @lukeparsons

12/28/2017 at 07:09PM

18
#2776 - Suphawit Getmark / @SGetmark

01/18/2018 at 04:58PM

18
#2777 - TpouHuK / @TpouHuK_

01/26/2018 at 07:24PM

18
#2778 - tapio / @gncnaxb

02/27/2018 at 12:56PM

18
#2779 - Tim / @timothyscosta

03/08/2018 at 05:25AM

18
#2780 - Meda Marisela / @LongbowMeda

03/12/2018 at 12:51AM

18
#2781 - Austin Ware / @AustinWare17

03/12/2018 at 06:23PM

18
#2782 - Patrick Haugh / @haughpj

03/14/2018 at 11:55PM

18
#2783 - Oleg Skillup / @skill_up

03/20/2018 at 07:34PM

18
#2784 - Tim Boooo-ckley 👻 / @timbucki

03/27/2018 at 02:36PM

18
#2785 - wwnbb1 / @wwnbb1

05/02/2018 at 04:10PM

18
#2786 - Jonathan King / @JonKingUsername

05/03/2018 at 05:06PM

18
#2787 - Sean Earle / @Hell_Rok

05/04/2018 at 06:38AM

18
#2788 - Robopengwin / @robopengwin

05/06/2018 at 05:01AM

18
#2789 - Jonathan Frias / @jonh_pato

05/08/2018 at 08:12PM

18
#2790 - miracle / @miracle73970854

05/12/2018 at 02:12AM