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

3428 active golfers, 11002 entries

Leaderboard (lowest score wins):
14
#61 - Grandy Nguyen / @GrandyNguyen

09/22/2013 at 04:27PM

14
#62 - Hennie van Niekerk / @hennievn

09/22/2013 at 11:06PM

14
#63 - Dary Merckens / @merckens

09/23/2013 at 05:39AM

14
#64 - Juan Guerrero / @jguerrero_

09/23/2013 at 09:01AM

14
#65 - shark dick / @DickShark

09/25/2013 at 05:38PM

14
#66 - Ashot / @ashot

09/25/2013 at 11:29PM

14
#67 - Jaime sánchez / @jashbeta

09/28/2013 at 01:23PM

14
#68 - Lim / @limdauto

09/29/2013 at 02:17PM

14
#69 - lechariotdor / @lechariotdor

09/30/2013 at 09:35PM

14
#70 - Rodrigo Limão / @rlimaoc

10/01/2013 at 08:25PM

14
#71 - Throw Away / @throwaway111111

10/01/2013 at 10:41PM

14
#72 - Austin Schwartz / @amschw

10/02/2013 at 03:52PM

14
#73 - Devin Gray / @devinagray

10/03/2013 at 04:17AM

14
#74 - Isaac Sloan / @elorest

10/04/2013 at 03:47AM

14
#75 - StarkHalo / @hellektor

10/04/2013 at 05:17AM

14
#76 - Grégoire Delattre / @gregdel

10/04/2013 at 08:45AM

14
#77 - aRkadeFR / @aRkadeFR

10/06/2013 at 06:18PM

14
#78 - Steven Mueller / @Gervigok

10/06/2013 at 09:55PM

14
#79 - Vim Golf / @VimGolfUser1

10/07/2013 at 10:41PM

14
#80 - buz / @buzbone

10/08/2013 at 12:45PM

14
#81 - Jamie Schembri / @shkm

10/09/2013 at 05:57PM

14
#82 - Sergio Benitez / @Sergio965

10/09/2013 at 10:03PM

14
#83 - Sencer Selcuk / @sencers_

10/10/2013 at 04:25AM

14
#84 - Mac Heller-Ogden / @twosoul

10/11/2013 at 02:35PM

14
#85 - Rein Henrichs / @ReinH

10/11/2013 at 05:19PM

14
#86 - Philippe Mongeau / @phmongeau

10/11/2013 at 05:53PM

14
#87 - melanargia / @melanargian

10/12/2013 at 10:06AM

14
#88 - KB / @CommonKb

10/13/2013 at 07:36PM

14
#89 - Song Zheng / @songz

10/13/2013 at 10:25PM

14
#90 - Ben Miller / @Nephi12Ben

10/15/2013 at 06:05AM