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

3969 active golfers, 12967 entries

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

04/01/2018 at 12:14AM

14
#872 - ken / @mindnaked

04/04/2018 at 07:08AM

14
#873 - Fichera Gaetano / @gaetanofic

04/10/2018 at 03:40PM

14
#874 - AndrzejWasowski@scholar.social 🌻 🕊️ / @AndrzejWasowski

04/19/2018 at 12:10PM

14
#875 - Milan Ľudma / @turiec_

04/29/2018 at 09:51PM

14
#876 - Daniel Liu / @idanieliu

05/03/2018 at 05:35AM

14
#877 - Justin Hoyt / @JustinHoyt24

05/04/2018 at 01:35PM

14
#878 - golfer / @golfer30767399

05/04/2018 at 10:06PM

14
#879 - Kaydo Alders / @Yousousen

05/07/2018 at 08:43PM

14
#880 - Zach Johnson / @zachjohnsondev

05/07/2018 at 11:51PM

14
#881 - Bimal Gaudel / @BimalGaudel

05/08/2018 at 10:30AM

14
#882 - Alexey Shiklomanov / @ashiklom711

05/09/2018 at 02:27PM

14
#883 - Matt Aschmann / @ma7hatter

05/21/2018 at 06:38PM

14
#884 - golfal / @golfal2

06/02/2018 at 02:46AM

14
#885 - Daniël De Koker / @daniel_koker

06/03/2018 at 03:50PM

14
#886 - Bilgisayar yazilimcisi Huseyin / @revanthedarth

06/06/2018 at 03:43AM

14
#887 - Davidoir / @Davidoir

06/07/2018 at 10:23AM

14
#888 - Jules Wichita / @octarlol

06/07/2018 at 09:42PM

14
#889 - martin tourneboeuf / @martintournebo1

06/19/2018 at 09:16PM

14
#890 - steph-query / @StephQuery

06/29/2018 at 10:16PM

14
#891 - 3admin / @achtebaby

06/29/2018 at 11:14PM

14
#892 - sspan / @sspantz

07/02/2018 at 04:20AM

14
#893 - Gemille Ford / @gemilleford

07/02/2018 at 01:27PM

14
#894 - Alfredo Ribeiro / @aribeiro

07/05/2018 at 06:52PM

14
#895 - Ira Page / @ira__page

07/10/2018 at 06:00AM

14
#896 - Judy / @Bibilidibipi

07/13/2018 at 11:48PM

14
#897 - Francesco Sacchi / @depsir

07/16/2018 at 08:19AM

14
#898 - Gareth Miller / @CTingCTer

07/17/2018 at 08:48AM

14
#899 - niwatoco / @yoshitune9

07/18/2018 at 11:32PM

14
#900 - Andrew Peterson / @FungalRaincloud

07/27/2018 at 04:09AM