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

3272 active golfers, 10474 entries

Leaderboard (lowest score wins):
14
#91 - Marcin Sza / @coot_

10/15/2013 at 08:33AM

14
#92 - Ragunathan Pattabi / @rpattabi

10/15/2013 at 06:46PM

14
#93 - shivukumar / @shivukumarpatil

10/16/2013 at 03:56AM

14
#94 - Liam Wilkins / @CallMeWilkins

10/16/2013 at 05:15PM

14
#95 - Jesse Nazario / @jessenzr

10/16/2013 at 07:03PM

14
#96 - yoohey / @yoohey_m

10/17/2013 at 04:07PM

14
#97 - Alexandre Girard / @alx

10/18/2013 at 10:01AM

14
#98 - Corey Glynn / @albedoa

10/18/2013 at 08:18PM

14
#99 - nick / @nrehm

10/19/2013 at 12:12AM

14
#100 - Bradley M. Small / @BradleySmall

10/19/2013 at 04:30AM

14
#101 - spintriae / @spintriae

10/20/2013 at 04:25PM

14
#102 - Casey Dwyer / @caseydwyer

10/20/2013 at 04:31PM

14
#103 - Gemma Lynn / @ellotheth

10/22/2013 at 04:36AM

14
#104 - Brandon Lee / @bernardoodoo

10/22/2013 at 11:48AM

14
#105 - Sami Haahtinen / @SHaahtinen

10/22/2013 at 01:18PM

14
#106 - I / @ForgetIt17

10/22/2013 at 08:10PM

14
#107 - Duy Vinh CHUC / @french_vinh

10/22/2013 at 10:27PM

14
#108 - Jansen Price / @sumpygump

10/23/2013 at 02:03AM

14
#109 - adsfwv / @b768974

10/23/2013 at 07:37AM

14
#110 - Tzipan / @Tzipan

10/23/2013 at 02:42PM

14
#111 - M / @a5kron

10/24/2013 at 12:03AM

14
#112 - Gennady Sazonov / @lynxbyorion

10/24/2013 at 04:36AM

14
#113 - Michael Perrone / @ThePerrone

10/24/2013 at 02:17PM

14
#114 - thasso / @thasso23

10/24/2013 at 08:52PM

14
#115 - まっすー。 / @trapple

10/25/2013 at 09:10AM

14
#116 - François Marais / @maraisf

10/25/2013 at 04:49PM

14
#117 - Anthony Morelli / @anthonyjmorelli

10/25/2013 at 06:36PM

14
#118 - Milind Ganjoo / @mganjoo

10/25/2013 at 07:25PM

14
#119 - fifigyuri / @fifigyuri

10/27/2013 at 07:11AM

14
#120 - Matthew Basanta / @mbasanta

10/28/2013 at 05:52PM