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

3738 active golfers, 12100 entries

Leaderboard (lowest score wins):
18
#2731 - John Traji / @JTraji

02/16/2016 at 08:26PM

18
#2732 - Markus Bohl / @bohl_markus

02/23/2016 at 09:14PM

18
#2733 - Benjamin Miller / @Bmiller14Miller

02/25/2016 at 07:58PM

18
#2734 - Siim Põder / @siimphh

03/08/2016 at 12:23AM

18
#2735 - Nicholas Pufal / @npufal

03/25/2016 at 02:58AM

18
#2736 - Niru Maheswaranathan / @niru_m

04/04/2016 at 01:04AM

18
#2737 - Matteo Signer / @MatteoSigner

04/12/2016 at 08:09AM

18
#2738 - Christian Franke / @franke_chriss

04/21/2016 at 07:36PM

18
#2739 - Jon Barson / @jbarson

04/28/2016 at 03:44PM

18
#2740 - onedayrex / @onedayzns

04/29/2016 at 02:23AM

18
#2741 - Rob Ert / @robrunner888

05/09/2016 at 08:34PM

18
#2742 - Sasho / @sashho

06/05/2016 at 06:18PM

18
#2743 - Alex Wang / @a1exwang

07/15/2016 at 06:53AM

18
#2744 - Antoni Villalonga / @friki

08/15/2016 at 09:36AM

18
#2745 - Maxim Pertsov / @maxim_pertsov

08/21/2016 at 08:11AM

18
#2746 - Clalani / @clalania

10/14/2016 at 10:50AM

18
#2747 - Christian Rondeau / @c_rondeau

10/15/2016 at 05:39PM

18
#2748 - Philipp Mildenberger / @_phil_m

11/14/2016 at 01:39AM

18
#2749 - Никита Канунников / @NIikitaK

12/09/2016 at 08:56AM

18
#2750 - Luke / @toy_lang_smell

01/01/2017 at 06:36PM

18
#2751 - Tith Chantara / @TithChantara

01/12/2017 at 11:03PM

18
#2752 - Riz Joj / @rizjoj

02/06/2017 at 02:45AM

18
#2753 - Mads Jensen / @mads_je

02/24/2017 at 01:58PM

18
#2754 - saffronsnail / @saffsnail

03/16/2017 at 12:04AM

18
#2755 - 20speedvegan / @ashkevinm

04/11/2017 at 07:24PM

18
#2756 - Henns Woerst / @HennsW

04/13/2017 at 05:46PM

18
#2757 - Codingpotato / @codingpotato

05/07/2017 at 08:56AM

18
#2758 - Chicuella / @chicuellahere

05/19/2017 at 09:20AM

18
#2759 - Schley Barrack / @BarrackSchley

05/19/2017 at 07:00PM

18
#2760 - Anders Schramm / @AndersSchramm

05/22/2017 at 10:25PM