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

3487 active golfers, 11195 entries

Leaderboard (lowest score wins):
14
#421 - iershov / @thorny_hamster

09/26/2014 at 02:59PM

14
#422 - Gromina / @Gromina

10/02/2014 at 10:39AM

14
#423 - Pierre Stévens / @pierre_stv

10/05/2014 at 06:27PM

14
#424 - Daniel Burnett / @mango_cheetah

10/10/2014 at 12:26AM

14
#425 - Daniel Pham / @dany_pham

10/13/2014 at 08:58PM

14
#426 - aborilov / @aborilov

10/15/2014 at 06:33AM

14
#427 - bdtwit / @bdtwit2

10/15/2014 at 04:26PM

14
#428 - Javier Cervantes / @solojavier

10/16/2014 at 09:47PM

14
#429 - Marcelo Montu / @_mMontu_

10/17/2014 at 06:21PM

14
#430 - Hanakun. / @akunohanaKUN

10/18/2014 at 01:20AM

14
#431 - Andreas Simon / @ndrssmn

10/18/2014 at 09:30PM

14
#432 - Peter Andersson / @teroqim

10/24/2014 at 04:20PM

14
#433 - Kongqun Yang / @KongqunY

10/27/2014 at 11:49PM

14
#434 - Alex Lesman / @LesmanAlex

10/28/2014 at 07:39PM

14
#435 - Dane Summers / @dsummersl

10/29/2014 at 07:23PM

14
#436 - @sndsgns / @sndsgns

11/04/2014 at 06:54AM

14
#437 - Tonda Minařík / @Eari359

11/06/2014 at 01:11PM

14
#438 - Malte R / @maltoe

11/07/2014 at 05:58PM

14
#439 - Michael Comerford / @MComerford1

11/09/2014 at 04:04AM

14
#440 - M T / @bahkyp

11/14/2014 at 11:39PM

14
#441 - Hrvoje Kopinc / @Hrwaaa

11/16/2014 at 03:07PM

14
#442 - Yuriy / @skriyka

11/18/2014 at 10:48PM

14
#443 - Joel S. / @joelthelion

11/22/2014 at 10:05PM

14
#444 - Vincent Dumoulin / @dumoulinv

11/23/2014 at 05:18AM

14
#445 - Michael Aston / @pennyOsl

11/29/2014 at 03:30PM

14
#446 - Roberto Alegro / @robertoaall

11/30/2014 at 03:50PM

14
#447 - Jonathan Geddes / @j_gds

12/07/2014 at 04:47AM

14
#448 - Frederik Vosberg / @FrediVosberg

12/08/2014 at 09:06PM

14
#449 - Eric Lawless / @eplawless

12/11/2014 at 08:13AM

14
#450 - Elizabeth / @sprinkles418

12/11/2014 at 09:55PM