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):
23
#3241 - ixplode / @ixplode

12/02/2013 at 06:12AM

23
#3242 - 湾ちゃん~♪ / @atifans

12/13/2013 at 05:38PM

23
#3243 - Edgar Klerks / @eklerks

12/18/2013 at 04:38PM

23
#3244 - Oran / @Oranav

12/19/2013 at 08:58PM

23
#3245 - Anton Shemerey / @shemerey

01/04/2014 at 06:25AM

23
#3246 - Woojung Kim 김우중 / @_kimwz

01/10/2014 at 02:38AM

23
#3247 - Joao Cleto / @jcleto

01/13/2014 at 07:45PM

23
#3248 - Michael Haddad / @mrhaddad

01/25/2014 at 03:14AM

23
#3249 - Christoph / @crrauch

01/28/2014 at 07:25PM

23
#3250 - Jeff Federman / @jefffederman

01/29/2014 at 02:15AM

23
#3251 - Frank Smith / @OryxGazella

02/03/2014 at 07:11PM

23
#3252 - ; / @dandwor

02/06/2014 at 11:44AM

23
#3253 - Tony Fischetti / @tonyfischetti

02/25/2014 at 09:14PM

23
#3254 - ChoongHoe Chow / @chnibbled

02/26/2014 at 03:59AM

23
#3255 - asdf / @201679996

03/06/2014 at 06:05PM

23
#3256 - Frank C. Eckert / @FrankCEckert

04/14/2014 at 12:45PM

23
#3257 - Pavlo Klets / @p01nt

04/24/2014 at 11:31AM

23
#3258 - yyken / @yyken1210

04/28/2014 at 01:15PM

23
#3259 - Jonas Müller / @muellerjonas

06/11/2014 at 09:22AM

23
#3260 - Herr Oppermann / @HerrOppermann

06/15/2014 at 02:53PM

23
#3261 - こばばー / @symmet

07/17/2014 at 03:36PM

23
#3262 - Justin Weidner / @justinweidner

07/25/2014 at 08:15PM

23
#3263 - MBA Debates / @MBADebates

08/09/2014 at 12:45AM

23
#3264 - Aregon Digital / @AregonDigital

08/09/2014 at 01:05AM

23
#3265 - Arangs / @arangs

08/13/2014 at 06:44AM

23
#3266 - Chris Trotman / @solarnz

10/06/2014 at 01:30AM

23
#3267 - Vadim / @faberge_eggs

11/27/2014 at 11:52AM

23
#3268 - Will McClellan / @willmcc_

03/04/2015 at 06:12AM

23
#3269 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/27/2015 at 04:33PM

23
#3270 - Joseph Siddall / @jbsiddall

04/19/2015 at 06:09AM