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

3535 active golfers, 11368 entries

Leaderboard (lowest score wins):
20
#2821 - galadriel2143 / @galadriel2143

07/06/2013 at 08:26AM

20
#2822 - jan muha / @h4ct1c

07/13/2013 at 03:03PM

20
#2823 - Todd Branchflower / @toddbranch

07/16/2013 at 11:46PM

20
#2824 - Ryan O'Dowd / @ryanodowd1

07/27/2013 at 11:59PM

20
#2825 - Asa Jay / @HiFreeo

07/29/2013 at 09:30PM

20
#2826 - Ziad Jiryes / @ZJiryes

08/08/2013 at 02:37PM

20
#2827 - apof / @9pof

09/13/2013 at 07:34AM

20
#2828 - Virginia Lee / @greeniely

10/02/2013 at 12:34PM

20
#2829 - Marcin Stankiewicz / @stany

10/14/2013 at 03:26PM

20
#2830 - Vincent Riesop / @VincentRiesop

10/20/2013 at 03:20PM

20
#2831 - Brian Skarda / @BrianSkarda

10/22/2013 at 05:40PM

20
#2832 - Psuedo Quasi / @PsuedoQuasi

10/22/2013 at 09:44PM

20
#2833 - Alex Podaras / @apodaras

10/23/2013 at 05:28PM

20
#2834 - Paul Federspiel / @parobalth

10/23/2013 at 10:15PM

20
#2835 - Brandon Mittman / @Big_B_M

10/24/2013 at 02:47AM

20
#2836 - Koko / @Koko72525913

10/24/2013 at 01:44PM

20
#2837 - s3vster / @s3vster

10/26/2013 at 06:20PM

20
#2838 - Gilles Leblanc / @gillesleb

10/30/2013 at 01:39AM

20
#2839 - David Tran / @everyzero

10/30/2013 at 07:40PM

20
#2840 - Patrick Corrigan / @PatrickC0rrigan

11/11/2013 at 05:19PM

20
#2841 - Kevin James / @KevinKarruthers

11/20/2013 at 09:18PM

20
#2842 - Joel Brewer / @JahBrewski

11/21/2013 at 06:49PM

20
#2843 - miguel angel huerta / @hgmiguel

11/26/2013 at 02:20AM

20
#2844 - Larry Boltovskoi / @larrybolt

12/07/2013 at 08:55PM

20
#2845 - Juho Jokelainen / @juhojokelainen

12/09/2013 at 09:10PM

20
#2846 - Rafael Rendon Pablo / @__rendon__

12/13/2013 at 04:41AM

20
#2847 - Greg Nofi / @nofinator

12/20/2013 at 02:35PM

20
#2848 - Pierre Langlois / @_pierrelanglois

12/26/2013 at 10:57PM

20
#2849 - Travis Rodman / @TravisRodman

01/07/2014 at 01:52AM

20
#2850 - Tomek Solak / @tomeksolak

01/28/2014 at 05:05PM