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

3732 active golfers, 12076 entries

Leaderboard (lowest score wins):
17
#2431 - Lucas Rosa Galêgo / @lrgalego

01/26/2014 at 11:13PM

17
#2432 - bfontaine / @bfontn

01/28/2014 at 06:35PM

17
#2433 - cj / @cj01101

01/28/2014 at 09:00PM

17
#2434 - Simon Elliott / @purge

01/28/2014 at 09:02PM

17
#2435 - David / @stringsatrandom

02/02/2014 at 12:16AM

17
#2436 - Anton Kovalev / @mcquay239

02/02/2014 at 06:53PM

17
#2437 - Malek Ben Romdhane / @malekbr

02/02/2014 at 11:18PM

17
#2438 - Oddbike / @oddbike

02/04/2014 at 09:30PM

17
#2439 - Davey Struijk / @daveystruijk

02/15/2014 at 07:41PM

17
#2440 - Mikami / @mi_kami

02/24/2014 at 04:59PM

17
#2441 - Alec Winograd / @awinograd

02/25/2014 at 12:14AM

17
#2442 - Ri / @riateche

03/01/2014 at 09:07PM

17
#2443 - Paul Jay / @PaulJay91

03/14/2014 at 06:43AM

17
#2444 - Aaron N. Tubbs / @atubbs

03/18/2014 at 11:52AM

17
#2445 - Cody F H / @codyfh

04/02/2014 at 09:21PM

17
#2446 - ovo / @prokrastinatsia

04/03/2014 at 04:10PM

17
#2447 - Chris Sun / @chris_sun

04/03/2014 at 09:42PM

17
#2448 - Jamie Davies / @daviesjamie

04/16/2014 at 01:40PM

17
#2449 - Endir / @Endir2

04/17/2014 at 02:48PM

17
#2450 - Ricardo Lima / @ricponteslima

04/22/2014 at 03:31PM

17
#2451 - Alejandro DeGregorio / @degregorio_ale

04/23/2014 at 02:20PM

17
#2452 - 병훈 / @qudgns

04/24/2014 at 03:14PM

17
#2453 - Heron Medeiros / @heronmedeiros

05/14/2014 at 11:17PM

17
#2454 - tullie / @tulliemurrell

05/17/2014 at 04:07AM

17
#2455 - Gabutero / @wizmokeri

06/17/2014 at 07:08AM

17
#2456 - Jeroen Bulters / @bulters

06/22/2014 at 01:46PM

17
#2457 - Javier Blanco / @jbgutierrez

06/24/2014 at 11:11AM

17
#2458 - Jonathan Skeate / @jskeate

06/30/2014 at 09:00PM

17
#2459 - Zack Brown / @ztbrown

07/01/2014 at 01:28AM

17
#2460 - Kirill / @wedens_

07/09/2014 at 05:56AM