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

3970 active golfers, 12969 entries

Leaderboard (lowest score wins):
15
#1591 - jakeroberts / @jakeroberts

05/21/2017 at 02:06PM

15
#1592 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 09:01PM

15
#1593 - Rodrigo Dorantes G. / @ruydg

05/27/2017 at 01:33PM

15
#1594 - David Gustavsson / @mrGustaphe

06/08/2017 at 02:56PM

15
#1595 - MS / @schrectacular

06/09/2017 at 08:57PM

15
#1596 - Robert Goeddel / @f0rdpr3fect

06/15/2017 at 10:28PM

15
#1597 - moritz / @moritz45081535

06/18/2017 at 01:26PM

15
#1598 - Christian Stammen / @c0smiq

06/29/2017 at 11:55AM

15
#1599 - John Marks / @__jmarks

07/03/2017 at 08:10PM

15
#1600 - Jacob Buete / @JBuete

07/04/2017 at 05:00AM

15
#1601 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/08/2017 at 10:03PM

15
#1602 - Gurukandhamoorthi / @Gurukandhamoor1

07/09/2017 at 03:51PM

15
#1603 - Sgt. Coon / @Sgt_Coon

07/13/2017 at 03:30PM

15
#1604 - 黒澤亮二 / @rjkuro

07/22/2017 at 01:28AM

15
#1605 - Adrian Staniec / @adrianstaniec

08/06/2017 at 05:20PM

15
#1606 - Baine Wedlock / @BaineWedlock

08/10/2017 at 07:15PM

15
#1607 - Cyrus Nikolaidis / @CyrusNikolaidis

08/21/2017 at 04:53PM

15
#1608 - SirVimGolf / @SirVimGolf

08/23/2017 at 08:31PM

15
#1609 - Alon L / @0xa10

08/28/2017 at 01:14PM

15
#1610 - Rachel Murray / @RachelMurray11

08/30/2017 at 04:42AM

15
#1611 - bazkila@gmail.com / @bazkila

09/02/2017 at 04:16AM

15
#1612 - Markus / @dayshade_7

09/06/2017 at 09:01AM

15
#1613 - Alejandro Catalina / @AleexCatalina

09/10/2017 at 06:57PM

15
#1614 - 郑晓东 / @DGivxLTVopiOQap

09/14/2017 at 08:47AM

15
#1615 - Graham Bates / @gigabates

09/16/2017 at 12:03PM

15
#1616 - jirgn / @jirgn

09/23/2017 at 07:46PM

15
#1617 - Loreno Heer / @helohe

09/24/2017 at 07:56PM

15
#1618 - ؜ / @h43z

10/01/2017 at 07:19PM

15
#1619 - Chris Atanasian / @ChrisAtanasian

10/09/2017 at 08:46PM

15
#1620 - Paul Woestelandt / @pwoestelandt

10/10/2017 at 09:13AM