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
#211 - 黒猫 / @darkfeline

01/17/2014 at 10:35AM

14
#212 - Olivier Lechevalier / @RageZBla

01/19/2014 at 10:48AM

14
#213 - John Amicangelo / @AmicangeloJohn

01/21/2014 at 02:45PM

14
#214 - Thomas / @lslahrs

01/21/2014 at 09:27PM

14
#215 - Travis Millott / @ritherz

01/21/2014 at 11:43PM

14
#216 - Etienne Charignon / @echar

01/23/2014 at 10:40PM

14
#217 - Victor Alessandro / @VictorAlessand4

01/26/2014 at 02:59AM

14
#218 - Jon Evans / @burmasauce

01/28/2014 at 06:42PM

14
#219 - Tyler Holien / @tylerholien

01/28/2014 at 08:08PM

14
#220 - Pete Gadomski / @petegadomski

01/28/2014 at 09:08PM

14
#221 - Ryan McGowan / @Ryan_VM

01/28/2014 at 11:06PM

14
#222 - Jay R Bolton / @the_swerve

01/29/2014 at 02:52AM

14
#223 - Jason L. Shiffer / @zerotao

01/29/2014 at 03:33AM

14
#224 - Sander van Zoest / @svanzoest

01/29/2014 at 05:48AM

14
#225 - Francisco J Martin / @aficionado

01/29/2014 at 06:08AM

14
#226 - Max / @max_hoyd

01/29/2014 at 09:03AM

14
#227 - Jonathan Slenders / @jonathan_s

01/29/2014 at 09:13AM

14
#228 - Marcin Radomski / @_dextero

01/29/2014 at 10:00AM

14
#229 - Han Runar / @ringe

01/29/2014 at 10:59AM

14
#230 - Ronny Esterluss / @esterlus

01/29/2014 at 02:22PM

14
#231 - Jeff Terrell / @kyptin

01/29/2014 at 03:43PM

14
#232 - Smylers / @Smylers2

01/29/2014 at 04:04PM

14
#233 - Matthew Kirk / @mjkirk

01/29/2014 at 07:23PM

14
#234 - Mor Gue / @lolicons

01/30/2014 at 05:57AM

14
#235 - stevenyap / @stevenyap

01/30/2014 at 06:48AM

14
#236 - Jakob Lundberg / @JakobLundberg

01/30/2014 at 03:29PM

14
#237 - Korbinian Stoemmer / @PaulSmecker

01/30/2014 at 08:27PM

14
#238 - Jonny / @Jonnytron

01/30/2014 at 10:32PM

14
#239 - Joiey Seeley / @jseeley

01/31/2014 at 06:19AM

14
#240 - Luke Worth / @povman

01/31/2014 at 11:06PM