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

3904 active golfers, 12678 entries

Leaderboard (lowest score wins):
21
#3361 - Charles Neill / @ccneill

05/01/2014 at 01:54AM

21
#3362 - Jeff Parent / @jeffparent

05/11/2014 at 01:27PM

21
#3363 - Rajesh Duggal / @rduggal

05/15/2014 at 06:23PM

21
#3364 - Jim Hester / @the_belal

05/19/2014 at 07:16PM

21
#3365 - Tapio Salonsaari / @tapiosalonsaari

05/21/2014 at 12:45PM

21
#3366 - Danis Cat Joko / @daniscatjoko

05/26/2014 at 12:12AM

21
#3367 - Alexandre Dubreuil / @dubreuia

06/02/2014 at 09:22PM

21
#3368 - Jake Marsh / @jakemmarsh

06/03/2014 at 04:05PM

21
#3369 - Joop Pascha / @PaschaJ

06/14/2014 at 08:23AM

21
#3370 - Jonathan Paulson / @PaulsonJonathan

06/15/2014 at 01:00AM

21
#3371 - Jemma / @Fwippy

06/18/2014 at 11:02PM

21
#3372 - Dawn Woodard / @kiarabird42

06/23/2014 at 11:08PM

21
#3373 - Shugo Tanaka / @shugoingplaces

06/24/2014 at 07:18PM

21
#3374 - Blake Hitchcock / @bhitchcock247

07/02/2014 at 09:45PM

21
#3375 - glennphillips / @glennphillips

07/09/2014 at 06:40PM

21
#3376 - Jimmy McRascal / @JimmyMcRascal

07/10/2014 at 01:14AM

21
#3377 - Alex / @ninjabassist777

07/31/2014 at 02:34PM

21
#3378 - Alexander Yermakov / @Mannavard

08/02/2014 at 08:24AM

21
#3379 - JonathanStarnes / @JON_STARNES

08/08/2014 at 02:07AM

21
#3380 - Tj / @yrddy

08/13/2014 at 05:22AM

21
#3381 - Yariv / @yarivb

08/17/2014 at 01:30PM

21
#3382 - Dr4k3 / @Dr4k3_LE

08/26/2014 at 07:50PM

21
#3383 - Ryo Sakikawa / @ryosakikawa

09/17/2014 at 04:40AM

21
#3384 - Nick Johnstone / @widdnz

09/24/2014 at 04:38AM

21
#3385 - Vincent Yu / @vyuniverse

10/15/2014 at 04:19AM

21
#3386 - Anton Geraschenko / @geraschenko

10/20/2014 at 03:04AM

21
#3387 - Iany / @grayhatdogfish

10/21/2014 at 06:55AM

21
#3388 - Ryan Glassett / @rollsavager

10/22/2014 at 04:29PM

21
#3389 - Steve Lazaridis / @SteveLazaridis

11/03/2014 at 04:20PM

21
#3390 - Thomas Moulia / @jtmoulia

11/07/2014 at 06:13AM