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

3919 active golfers, 12736 entries

Leaderboard (lowest score wins):
14
#301 - Tim Green / @iamtimgreen

03/04/2014 at 07:29AM

14
#302 - Gregory Barborini / @grgrbrbrn

03/04/2014 at 09:24PM

14
#303 - Space Sloth / @daspacesloth

03/05/2014 at 02:16AM

14
#304 - mnx / @mnxx

03/05/2014 at 10:17PM

14
#305 - Yiyang Chen / @stackngxc

03/06/2014 at 01:47PM

14
#306 - Sebastian Lamm / @SebaLamm

03/06/2014 at 11:47PM

14
#307 - Konrad / @zichul

03/07/2014 at 10:49PM

14
#308 - Jared Weakly / @jaredweakly

03/08/2014 at 05:25AM

14
#309 - lukecowell / @lukecowell

03/08/2014 at 05:39AM

14
#310 - Romain Knezevic / @rkjdid

03/08/2014 at 12:56PM

14
#311 - Matthew Darby / @nifrith

03/08/2014 at 06:09PM

14
#312 - Joonas Pihlajamaa / @jokkebk

03/17/2014 at 09:46AM

14
#313 - skensell / @skensell

03/18/2014 at 08:00AM

14
#314 - David Barker / @dashleybarker

03/19/2014 at 05:07PM

14
#315 - Pedro Pacce / @DallaPacce

03/20/2014 at 01:58AM

14
#316 - Tim Chase / @gumnos

03/21/2014 at 01:26PM

14
#317 - Adrian / @reblow

03/21/2014 at 04:10PM

14
#318 - Bill / @fr33styl3r7

03/22/2014 at 03:08PM

14
#319 - Isaac / @elemental_1_1

03/23/2014 at 07:09AM

14
#320 - chaffinch / @chaffinch

03/23/2014 at 05:04PM

14
#321 - Greg Hues / @ghues

03/25/2014 at 01:47AM

14
#322 - Amir Kremer / @AmirKremer

03/25/2014 at 01:39PM

14
#323 - xarmux / @xarmux

03/26/2014 at 11:21PM

14
#324 - Marcus Kellerman / @sharkusk

03/31/2014 at 12:27AM

14
#325 - caguettaz / @caguettaz

04/01/2014 at 04:05PM

14
#326 - Carlos López / @morrizon

04/02/2014 at 01:21AM

14
#327 - Nikita Kouevda / @nkouevda

04/03/2014 at 10:33PM

14
#328 - Chad / @chadskeeters

04/04/2014 at 03:14AM

14
#329 - Wojciech Razik / @WojciechRazik

04/04/2014 at 07:06PM

14
#330 - Jean-Marie Comets / @jmcomets

04/05/2014 at 03:23PM