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

3919 active golfers, 12736 entries

Leaderboard (lowest score wins):
14
#391 - Lasse Dalegaard / @ldalegaard

07/06/2014 at 09:23PM

14
#392 - playalong / @playwithit42

07/07/2014 at 09:27AM

14
#393 - Laura Halla / @laura_halla

07/08/2014 at 08:19PM

14
#394 - ren / @wxoc

07/10/2014 at 07:41AM

14
#395 - magizbox / @rain_1024

07/13/2014 at 03:03AM

14
#396 - Oleg Tsymbalyuk / @oleg_tc

07/18/2014 at 04:59AM

14
#397 - Pete Johns / @johnsyweb

07/20/2014 at 01:45AM

14
#398 - Alphonso De La Morte / @FatDrakula

07/20/2014 at 12:08PM

14
#399 - Birkir Ólafsson / @Birkirlafsson

07/20/2014 at 01:40PM

14
#400 - joomy / @cattheory

07/20/2014 at 07:58PM

14
#401 - Yoonho Lee / @ID_einet89

07/21/2014 at 01:08PM

14
#402 - Rafee / @rafee_buet

07/22/2014 at 01:58PM

14
#403 - Darren Firth / @DarrenSFirth

07/23/2014 at 04:14AM

14
#404 - Alexey Permyakov / @aplexey

07/26/2014 at 02:12PM

14
#405 - Martin Toma / @MartinToma

07/26/2014 at 03:02PM

14
#406 - Alan Sherman / @InfoLeak117

07/30/2014 at 06:51PM

14
#407 - Joakim Hansen / @gnofs

07/31/2014 at 01:12AM

14
#408 - Jeremy Ruten / @yjerem

08/03/2014 at 07:15PM

14
#409 - PLS / @jaegd

08/06/2014 at 06:05AM

14
#410 - Phil Dubach / @fuiru

08/14/2014 at 03:54AM

14
#411 - Tomasz / @peper02

08/17/2014 at 11:17AM

14
#412 - Mike Rayner / @mikesfake

08/23/2014 at 03:49PM

14
#413 - Vim Golfer / @golfing_vim

08/23/2014 at 07:03PM

14
#414 - ninjay / @ninjaygolf

08/25/2014 at 10:56PM

14
#415 - April Gentle / @chen327684096

08/26/2014 at 10:08AM

14
#416 - Bill Booth / @ohiopyle

08/27/2014 at 12:26AM

14
#417 - aaron whitehead / @bigmacstorm

08/29/2014 at 05:42AM

14
#418 - brandon salmon / @Exiledz

08/29/2014 at 06:02AM

14
#419 - Daniel Beck / @daniel_beck_il

08/29/2014 at 11:29PM

14
#420 - Johan Linder / @imLinder

08/31/2014 at 02:48PM