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
#301 - lukecowell / @lukecowell

03/08/2014 at 05:39AM

14
#302 - Romain Knezevic / @rkjdid

03/08/2014 at 12:56PM

14
#303 - Matthew Darby / @nifrith

03/08/2014 at 06:09PM

14
#304 - John Braxler / @braxler

03/13/2014 at 09:05PM

14
#305 - Joonas Pihlajamaa / @jokkebk

03/17/2014 at 09:46AM

14
#306 - skensell / @skensell

03/18/2014 at 08:00AM

14
#307 - David Barker / @dashleybarker

03/19/2014 at 05:07PM

14
#308 - Pedro Pacce / @DallaPacce

03/20/2014 at 01:58AM

14
#309 - Tim Chase / @gumnos

03/21/2014 at 01:26PM

14
#310 - Adrian / @reblow

03/21/2014 at 04:10PM

14
#311 - Bill / @fr33styl3r7

03/22/2014 at 03:08PM

14
#312 - Isaac / @elemental_1_1

03/23/2014 at 07:09AM

14
#313 - chaffinch / @chaffinch

03/23/2014 at 05:04PM

14
#314 - Greg Hues / @ghues

03/25/2014 at 01:47AM

14
#315 - Amir Kremer / @AmirKremer

03/25/2014 at 01:39PM

14
#316 - xarmux / @xarmux

03/26/2014 at 11:21PM

14
#317 - Marcus Kellerman / @sharkusk

03/31/2014 at 12:27AM

14
#318 - caguettaz / @caguettaz

04/01/2014 at 04:05PM

14
#319 - Carlos López / @morrizon

04/02/2014 at 01:21AM

14
#320 - Nikita Kouevda / @nkouevda

04/03/2014 at 10:33PM

14
#321 - Chad / @chadskeeters

04/04/2014 at 03:14AM

14
#322 - Wojciech Razik / @WojciechRazik

04/04/2014 at 07:06PM

14
#323 - Jean-Marie Comets / @jmcomets

04/05/2014 at 03:23PM

14
#324 - Nic West / @west_nic

04/06/2014 at 02:48PM

14
#325 - usrbin / @notusrbin

04/09/2014 at 05:26PM

14
#326 - Andrew Allen / @allenan_

04/10/2014 at 03:51PM

14
#327 - HippieGeekGrrl / @hippiegeekgrrl

04/11/2014 at 01:11PM

14
#328 - Dmitry / @dimonzozo

04/12/2014 at 11:47PM

14
#329 - Charlie / @megacattt

04/13/2014 at 02:28AM

14
#330 - Matt Elliott / @matttelliott

04/13/2014 at 05:54AM