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

3317 active golfers, 10615 entries

Leaderboard (lowest score wins):
14
#481 - Jakub Kotowski / @jkbkot

02/15/2015 at 10:06PM

14
#482 - Michael Giuffrida / @mgiuffrida

02/20/2015 at 06:03AM

14
#483 - Alan Berndt / @bentglasstube

02/23/2015 at 05:18PM

14
#484 - Felix / @DoubleFelix_

02/24/2015 at 11:21AM

14
#485 - Arturo Volpe / @CochoVolpe

02/25/2015 at 02:27AM

14
#486 - octotep / @octotep

02/25/2015 at 03:09AM

14
#487 - paulfariello ✏️ / @paulfariello

02/25/2015 at 04:45PM

14
#488 - Chris Edwards / @boise_chris

02/26/2015 at 11:54PM

14
#489 - krzysztof siejkowski / @_siejkowski

02/28/2015 at 09:31AM

14
#490 - nope / @nope_gknobup

03/01/2015 at 09:06PM

14
#491 - Andrew / @WK3AS

03/01/2015 at 11:52PM

14
#492 - Erik Johansson / @iamknugen

03/02/2015 at 12:18AM

14
#493 - ylletyll / @ylletyll

03/02/2015 at 08:07PM

14
#494 - Matthew Pryor / @HodgekaGames

03/03/2015 at 06:17PM

14
#495 - dfleischman / @dfleischman

03/06/2015 at 11:35PM

14
#496 - Ala' Ibrahim / @alaa_ibrahim

03/10/2015 at 07:34AM

14
#497 - DrHobo / @_DrHobo_

03/12/2015 at 04:44AM

14
#498 - Roger Spencer / @RojSpencer

03/12/2015 at 10:21PM

14
#499 - Sigurður Ægir Jónsso / @siggiae

03/15/2015 at 11:53AM

14
#500 - Bradley Garagan / @bradgaragan

03/17/2015 at 02:52PM

14
#501 - Ben Sherman / @bensherman

03/17/2015 at 11:19PM

14
#502 - John Smith / @intanalyst1

03/19/2015 at 09:26PM

14
#503 - Hooman / @namooh

03/22/2015 at 06:54PM

14
#504 - Rod Knowlton / @codelahoma

03/22/2015 at 08:49PM

14
#505 - Kaleb Hornsby / @thekaleb

03/23/2015 at 04:16PM

14
#506 - GaveUp / @gaveup_

03/23/2015 at 06:36PM

14
#507 - jamesdrake / @oppaus

03/24/2015 at 02:05AM

14
#508 - Roman Zolotarev / @romanzolotarev

03/27/2015 at 02:22AM

14
#509 - Ruslan / @DarkhanRus

03/27/2015 at 04:22PM

14
#510 - John Stephens ⚑ / @johnstephens

03/28/2015 at 01:13AM