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

3968 active golfers, 12966 entries

Leaderboard (lowest score wins):
14
#61 - Cao Cuong Ngo / @nccuong

08/09/2013 at 10:36AM

14
#62 - Horst Lambda / @HorstLambda

08/09/2013 at 04:55PM

14
#63 - Michael LeCompte / @michaelslec

08/12/2013 at 01:11AM

14
#64 - Francois Picalausa / @fpicalausa

08/12/2013 at 03:37PM

14
#65 - Michael / @mjs2600

08/14/2013 at 12:05AM

14
#66 - _ky_ / @ultimate_ky

08/15/2013 at 09:41PM

14
#67 - Rasmus P / @rasmup

08/18/2013 at 12:35PM

14
#68 - Maxim / @alfa101

08/20/2013 at 02:06PM

14
#69 - Jiří Chára / @JiriChara

08/21/2013 at 01:52PM

14
#70 - Chris Webb / @chriswebb_42

08/22/2013 at 05:26AM

14
#71 - Bradley Tse / @bradleytse

08/24/2013 at 08:47PM

14
#72 - Stephen Drodge / @sjdrodge

08/24/2013 at 10:39PM

14
#73 - Abdel Said / @abdelsaid

08/24/2013 at 10:40PM

14
#74 - Drew Neil / @nelstrom

08/27/2013 at 09:25AM

14
#75 - Emile Swarts / @EmileSwarts

08/27/2013 at 06:27PM

14
#76 - meitham / @meitham

08/27/2013 at 07:08PM

14
#77 - Super Garbage / @SuperGarbage0

08/29/2013 at 05:39AM

14
#78 - Mihai Crăiță / @mihai_craita

08/29/2013 at 08:27AM

14
#79 - Berk Özbalcı / @bozbalci

08/31/2013 at 04:57AM

14
#80 - Matěj Nikl / @MatejNikl

09/09/2013 at 07:19PM

14
#81 - Matt Green / @emgeeeeee

09/15/2013 at 03:45PM

14
#82 - Julien Gueytat / @jgueytat

09/17/2013 at 09:40AM

14
#83 - Pierre Bousquie / @pierrebousquie

09/17/2013 at 12:41PM

14
#84 - Nick Bakkegaard / @Bakkemand

09/18/2013 at 11:22AM

14
#85 - Mathias Rav / @iaddquotes

09/20/2013 at 08:00AM

14
#86 - Grandy Nguyen / @GrandyNguyen

09/22/2013 at 04:27PM

14
#87 - Hennie van Niekerk / @hennievn

09/22/2013 at 11:06PM

14
#88 - Dary Merckens / @merckens

09/23/2013 at 05:39AM

14
#89 - Juan Guerrero / @jguerrero_

09/23/2013 at 09:01AM

14
#90 - shark dick / @DickShark

09/25/2013 at 05:38PM