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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
16
#2221 - Marek Wawrzos / @putisPenser

03/25/2015 at 08:59AM

16
#2222 - Alexander Kazakov / @volandkot

03/26/2015 at 02:59PM

16
#2223 - Robin Moussu / @robin_moussu

03/29/2015 at 10:09PM

16
#2224 - chvzvhn / @chvzvhn

03/31/2015 at 09:17PM

16
#2225 - Oleg Parashchenko / @olparko

04/02/2015 at 09:27AM

16
#2226 - ryo_n / @ryo_n

04/04/2015 at 09:03AM

16
#2227 - Rob Milward / @RobMilward

04/09/2015 at 08:36PM

16
#2228 - Chad / @__chad__

04/15/2015 at 07:25PM

16
#2229 - lukaskrieger / @lukaskrieger

04/17/2015 at 10:37AM

16
#2230 - matthieu le grix / @mlegrix

04/22/2015 at 05:53PM

16
#2231 - Sascha Fricke / @frgVFX

04/26/2015 at 12:00AM

16
#2232 - Tom van der Lee / @TomVdLee

05/01/2015 at 10:14AM

16
#2233 - Gael Roue / @gaelroue

05/02/2015 at 02:04PM

16
#2234 - Cosmin Banu / @cosminb82

05/06/2015 at 11:24PM

16
#2235 - たんたる / @tantal_mech

05/07/2015 at 01:38AM

16
#2236 - Vivek Sunder / @sviveksunder

05/13/2015 at 07:38PM

16
#2237 - peterm / @peterm0x

05/17/2015 at 07:01PM

16
#2238 - Austin Anderson / @ProtractorNinja

05/21/2015 at 05:14PM

16
#2239 - Mauro Persano / @fzort

05/23/2015 at 03:58PM

16
#2240 - Robert Robertson / @RobertC3228687

05/28/2015 at 08:28PM

16
#2241 - Adrien Fabre / @statox42

06/04/2015 at 08:33PM

16
#2242 - Steve / @fourbitbots

06/05/2015 at 09:18PM

16
#2243 - asdasd / @TheHeyHey123

06/06/2015 at 01:51AM

16
#2244 - Stefan Knudsen / @knud32

06/13/2015 at 12:19AM

16
#2245 - Nicholas McHenry / @n_mchenry

06/14/2015 at 02:59PM

16
#2246 - Mac Goever / @MacGoever

06/15/2015 at 12:08PM

16
#2247 - Mutter Mumble / @muttermumble

06/16/2015 at 09:26PM

16
#2248 - Omar Abou Mrad / @omaraboumrad

06/18/2015 at 01:16PM

16
#2249 - raghu erapaneedi / @raghue9

06/19/2015 at 10:10AM

16
#2250 - SP / @vimgolfer42

06/19/2015 at 09:53PM