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
#3331 - Johan Ask / @snobbslakt

01/28/2014 at 02:32PM

21
#3332 - lukeasrodgers / @lukeasrodgers

01/28/2014 at 09:53PM

21
#3333 - ひげまにや / @higemaniya

01/29/2014 at 02:33AM

21
#3334 - Larijohn Adorable / @jbpnoy6fifty

01/29/2014 at 05:16AM

21
#3335 - Matt Brown / @Gowabash

01/30/2014 at 12:10AM

21
#3336 - Nick Austin / @NickAustin13

01/30/2014 at 05:55PM

21
#3337 - Tomasz Janeczko / @tomekjaneczko

01/31/2014 at 02:01AM

21
#3338 - makuchy / @makuchy

02/01/2014 at 12:48PM

21
#3339 - Zudov / @zudov_me

02/02/2014 at 09:27PM

21
#3340 - Kerem Bozdas / @krmbzds

02/03/2014 at 06:36AM

21
#3341 - Christopher Hebert / @chebertapps

02/03/2014 at 09:05AM

21
#3342 - Andrey Kolomoets / @andreyk_mad

02/03/2014 at 12:30PM

21
#3343 - Chris Yuen / @kizzx2

02/06/2014 at 09:22AM

21
#3344 - Tojo Chacko / @tojochacko

02/19/2014 at 08:27PM

21
#3345 - Jon Wade / @jh_wade

02/23/2014 at 09:05PM

21
#3346 - i5513 / @i5513

02/25/2014 at 11:07PM

21
#3347 - Fred / @fredlee

03/01/2014 at 04:30PM

21
#3348 - John Mercer / @jfmercer

03/02/2014 at 10:19PM

21
#3349 - Franck / @_frp

03/04/2014 at 09:27AM

21
#3350 - Sravan Prasad / @SravanPrasad2

03/07/2014 at 09:12PM

21
#3351 - Kevin Gillieron / @gilliek42

03/12/2014 at 12:37PM

21
#3352 - TimWolla / @TimWolla

03/13/2014 at 08:57PM

21
#3353 - fred wong / @fredw08

03/17/2014 at 04:23PM

21
#3354 - Brian Olpin / @bolpin

03/22/2014 at 03:36PM

21
#3355 - Eyal Luxenburg / @eluxen

03/25/2014 at 01:41PM

21
#3356 - Dominik Schemmel / @vimgolfhandicap

03/28/2014 at 01:38PM

21
#3357 - Sheriuki / @sheriuki

03/28/2014 at 01:46PM

21
#3358 - Mick Garvey / @blarko

04/01/2014 at 12:02AM

21
#3359 - senbong / @senbong87

04/05/2014 at 03:18AM

21
#3360 - Yasuhiro Яша Asaka / @grauwoelfchen

04/12/2014 at 05:26AM