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
#961 - (っ=﹏=c) .。o○ / @itchyny

05/04/2019 at 12:53PM

14
#962 - Shreyas Balaji / @balaji_shreyas

05/05/2019 at 11:05PM

14
#963 - test / @test35595941

05/09/2019 at 08:07PM

14
#964 - Pauli Taipale / @pauli_taipale

05/11/2019 at 06:00PM

14
#965 - arsi arola / @mos_kiitto

05/15/2019 at 04:15PM

14
#966 - Daniel Hakimian / @danrafhak

05/15/2019 at 05:25PM

14
#967 - noisevoid / @noisevoid

05/16/2019 at 08:12PM

14
#968 - tynanguerra / @tynanguerra

05/20/2019 at 04:10PM

14
#969 - Nick Yeow / @nickyeow

05/21/2019 at 04:01PM

14
#970 - Fiffy / @sr21486642

05/22/2019 at 07:21AM

14
#971 - aggums / @touhoueurobeat

05/26/2019 at 05:37AM

14
#972 - TheJoblessGuyTalks / @the_jgt

05/28/2019 at 09:37AM

14
#973 - Seunghun Lee / @earlbread

05/29/2019 at 11:58AM

14
#974 - Дима / @dimkino

05/29/2019 at 10:05PM

14
#975 - Miłosz Łakomy / @foobar01123

06/03/2019 at 07:39AM

14
#976 - mkaminaga / @mkmng3

06/05/2019 at 09:31AM

14
#977 - Ben M / @Sweet_Scientist

06/07/2019 at 02:23AM

14
#978 - Sæther / @baltre1

06/07/2019 at 02:37PM

14
#979 - Eirik Furuseth / @heplaphon

06/11/2019 at 04:34PM

14
#980 - Fabien C. / @vaga_io

06/17/2019 at 10:35AM

14
#981 - John Herman Schwit / @JohnHermanSchwi

06/23/2019 at 01:08AM

14
#982 - Dan Yeaw / @danyeaw

06/30/2019 at 01:40AM

14
#983 - Philip / @vCoRezZ

06/30/2019 at 07:31PM

14
#984 - Nathan Knox / @the_nathan_knox

07/15/2019 at 03:17PM

14
#985 - Rasmus Öhman Bruno / @rasmohman

07/23/2019 at 12:08PM

14
#986 - Percelot / @percelot

07/24/2019 at 02:18PM

14
#987 - band / @band26376522

07/24/2019 at 08:45PM

14
#988 - Adam Katz / @AdamKat01277576

07/31/2019 at 03:18PM

14
#989 - John / @JohnJDoe2

08/01/2019 at 06:19AM

14
#990 - Joel Elkins / @dice_tea

08/03/2019 at 09:35PM