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
#391 - Alphonso De La Morte / @FatDrakula

07/20/2014 at 12:08PM

14
#392 - Birkir Ólafsson / @Birkirlafsson

07/20/2014 at 01:40PM

14
#393 - joomy / @cattheory

07/20/2014 at 07:58PM

14
#394 - Yoonho Lee / @ID_einet89

07/21/2014 at 01:08PM

14
#395 - Rafee / @rafee_buet

07/22/2014 at 01:58PM

14
#396 - Darren Firth / @DarrenSFirth

07/23/2014 at 04:14AM

14
#397 - Alexey Permyakov / @aplexey

07/26/2014 at 02:12PM

14
#398 - Martin Toma / @MartinToma

07/26/2014 at 03:02PM

14
#399 - Alan Sherman / @InfoLeak117

07/30/2014 at 06:51PM

14
#400 - Joakim Hansen / @gnofs

07/31/2014 at 01:12AM

14
#401 - Jeremy Ruten / @yjerem

08/03/2014 at 07:15PM

14
#402 - PLS / @jaegd

08/06/2014 at 06:05AM

14
#403 - Phil Dubach / @fuiru

08/14/2014 at 03:54AM

14
#404 - Tomasz / @peper02

08/17/2014 at 11:17AM

14
#405 - Mike Rayner / @mikesfake

08/23/2014 at 03:49PM

14
#406 - Vim Golfer / @golfing_vim

08/23/2014 at 07:03PM

14
#407 - ninjay / @ninjaygolf

08/25/2014 at 10:56PM

14
#408 - April Gentle / @chen327684096

08/26/2014 at 10:08AM

14
#409 - Bill Booth / @ohiopyle

08/27/2014 at 12:26AM

14
#410 - aaron whitehead / @bigmacstorm

08/29/2014 at 05:42AM

14
#411 - brandon salmon / @Exiledz

08/29/2014 at 06:02AM

14
#412 - Daniel Beck / @daniel_beck_il

08/29/2014 at 11:29PM

14
#413 - Johan Linder / @imLinder

08/31/2014 at 02:48PM

14
#414 - Some(coder) / @hauleth

09/03/2014 at 07:30AM

14
#415 - John Smith / @literacyisgood

09/05/2014 at 05:45AM

14
#416 - Octavian Tuchila / @OctavianTu

09/07/2014 at 06:50PM

14
#417 - Aaron Fresh / @AaronFresh7

09/12/2014 at 11:17PM

14
#418 - Giovanni Garufi / @garufi_giovanni

09/13/2014 at 10:18PM

14
#419 - Johannes H. / @neVexa

09/19/2014 at 09:36PM

14
#420 - Kai Yuan / @kentyuan

09/20/2014 at 10:58PM