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

3905 active golfers, 12682 entries

Leaderboard (lowest score wins):
14
#871 - sspan / @sspantz

07/02/2018 at 04:20AM

14
#872 - Gemille Ford / @gemilleford

07/02/2018 at 01:27PM

14
#873 - Alfredo Ribeiro / @aribeiro

07/05/2018 at 06:52PM

14
#874 - Ira Page / @ira__page

07/10/2018 at 06:00AM

14
#875 - Judy / @Bibilidibipi

07/13/2018 at 11:48PM

14
#876 - Francesco Sacchi / @depsir

07/16/2018 at 08:19AM

14
#877 - Gareth Miller / @CTingCTer

07/17/2018 at 08:48AM

14
#878 - niwatoco / @yoshitune9

07/18/2018 at 11:32PM

14
#879 - Andrew Peterson / @FungalRaincloud

07/27/2018 at 04:09AM

14
#880 - h3is3nd3rp / @h3is3nd3rp

08/03/2018 at 01:56PM

14
#881 - BanyRule / @BanyRule

08/05/2018 at 02:32PM

14
#882 - Jacky Lee / @grenmester

08/07/2018 at 06:04AM

14
#883 - O / @O34721877

08/07/2018 at 06:32AM

14
#884 - PCS Solutions / @PeteSolutions

08/10/2018 at 07:37PM

14
#885 - Noel Qiao / @NoelQiao

08/16/2018 at 02:34AM

14
#886 - Brandon Emery Craig / @iambcraig

08/17/2018 at 08:02PM

14
#887 - Mark Watson / @mrkrwtsn

08/17/2018 at 08:05PM

14
#888 - Fergus Longley / @FergusLongley

08/18/2018 at 11:32AM

14
#889 - Roberto Martínez / @nilp0inter

08/26/2018 at 09:33PM

14
#890 - Simon Ingelsson / @_DeVVaN_

08/27/2018 at 12:19PM

14
#891 - Lucas / @Lucas24474922

08/28/2018 at 01:40PM

14
#892 - Trey Deitch / @differenceeq

09/02/2018 at 12:29AM

14
#893 - Manuel Oswald / @_maoswald

09/02/2018 at 12:27PM

14
#894 - a / @a05150445

09/06/2018 at 03:49AM

14
#895 - Jeff / @sir_wiggles3

09/07/2018 at 08:21AM

14
#896 - Ezekiel Vladimir / @EzekielVladimir

09/11/2018 at 09:51AM

14
#897 - Bart3k / @Bart3k3

09/11/2018 at 07:41PM

14
#898 - Robin De Mol / @RobinDeMol

09/14/2018 at 08:50AM

14
#899 - Rebecca V. / @rxbxccxv

09/15/2018 at 06:38AM

14
#900 - Ruben Paz / @IstarEldritch

09/16/2018 at 05:19PM