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

3323 active golfers, 10641 entries

Leaderboard (lowest score wins):
14
#271 - Adam Lerner / @ScrivenerGames

02/10/2014 at 09:01PM

14
#272 - Spencer McAlpine / @spencermcalpine

02/11/2014 at 12:54PM

14
#273 - jDeveloper / @jDevEE

02/12/2014 at 09:20PM

14
#274 - Brandon / @xelxebar

02/13/2014 at 08:11AM

14
#275 - Kevin Craine / @baba_geek

02/16/2014 at 06:00AM

14
#276 - Tom / @tomave2014

02/16/2014 at 03:24PM

14
#277 - Xelrifos / @Xelrifos

02/16/2014 at 08:24PM

14
#278 - Rajit Singh / @rajitbsingh

02/21/2014 at 12:46PM

14
#279 - Chad Ostrowski / @chadoh

02/22/2014 at 04:40PM

14
#280 - Brad McDermott / @bmcdz

02/22/2014 at 07:09PM

14
#281 - Piotr Żurkowski / @kareth92

02/23/2014 at 11:36AM

14
#282 - けい / @enkinho

02/24/2014 at 04:21AM

14
#283 - Dmitry Petrov / @can3p

02/25/2014 at 08:24AM

14
#284 - sprmgik / @sprmgik

02/25/2014 at 08:55AM

14
#285 - hiro / @oahiroaki

02/25/2014 at 09:28AM

14
#286 - buck mild / @andyleclair

02/25/2014 at 10:15PM

14
#287 - Jack Jacquemmoz / @MozJack

02/26/2014 at 03:17PM

14
#288 - Clement Kinder / @ClementKinder

02/26/2014 at 05:33PM

14
#289 - Ernest Walzel / @ErnestWalzel

02/27/2014 at 11:34PM

14
#290 - Jeremy Gold / @JeremyGold3

02/28/2014 at 08:37AM

14
#291 - František Hartman / @frant_hartm

03/01/2014 at 09:20PM

14
#292 - Geraint Hywel / @g_mawr

03/01/2014 at 09:55PM

14
#293 - Tim Green / @iamtimgreen

03/04/2014 at 07:29AM

14
#294 - Gregory Barborini / @grgrbrbrn

03/04/2014 at 09:24PM

14
#295 - Huang Yu / @trave7er

03/05/2014 at 02:16AM

14
#296 - mnx / @mnxx

03/05/2014 at 10:17PM

14
#297 - Yiyang Chen / @yiyangc91

03/06/2014 at 01:47PM

14
#298 - Sebastian Lamm / @SebaLamm

03/06/2014 at 11:47PM

14
#299 - Konrad / @zichul

03/07/2014 at 10:49PM

14
#300 - Jared Weakly / @jaredweakly

03/08/2014 at 05:25AM