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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
14
#691 - TaoChen / @632143592Tao

06/15/2016 at 08:49AM

14
#692 - Marko / @suchtie

06/30/2016 at 06:47AM

14
#693 - Perry van Schaijk / @PvSchaijk

06/30/2016 at 02:01PM

14
#694 - Davide / @DvdMgr

07/01/2016 at 06:52AM

14
#695 - Pedro Santos / @pedrosans

07/20/2016 at 04:34AM

14
#696 - Alonzo / @tolver_a

07/22/2016 at 08:08AM

14
#697 - Jake Maul / @jake_maul

08/03/2016 at 06:41AM

14
#698 - Ameen P / @Ameen_P1

08/09/2016 at 05:48PM

14
#699 - Peter Brynza / @v3_1

08/20/2016 at 05:39PM

14
#700 - jaresty / @jaresty

08/23/2016 at 02:52PM

14
#701 - Richard O'Brien / @richard0b

08/24/2016 at 02:47AM

14
#702 - Stephen Aument / @saument

08/30/2016 at 08:44PM

14
#703 - jdupont655 / @jdupont655

09/01/2016 at 06:33PM

14
#704 - hor1ace / @hor3ace

09/07/2016 at 07:57PM

14
#705 - 알카포 / @alkpo12

09/09/2016 at 06:06AM

14
#706 - Rasmus / @SBareSSomErMig

09/16/2016 at 08:55PM

14
#707 - Allen57 / @ludo57310

09/18/2016 at 05:28PM

14
#708 - davidcgv / @davidcgv

09/24/2016 at 06:50PM

14
#709 - Anthony Ardito / @aardito21

09/25/2016 at 11:48PM

14
#710 - manbogot / @gmanbor

10/02/2016 at 09:52AM

14
#711 - Roman Zaharenkov / @rzaharenkov

10/03/2016 at 08:41AM

14
#712 - poke / @useraaaaaaaaaaf

10/05/2016 at 01:44PM

14
#713 - trx / @trxdbg

10/10/2016 at 07:10AM

14
#714 - Nico / @_Nico_Caro

10/15/2016 at 03:19AM

14
#715 - Brian Mego / @Major251

10/18/2016 at 02:32AM

14
#716 - Karl Lundquist / @karllundquist

10/20/2016 at 11:49PM

14
#717 - 子皓翁 / @geniusgordon

10/26/2016 at 07:29AM

14
#718 - Davis Fields / @i301585

11/04/2016 at 03:48AM

14
#719 - nemonomine / @nemonomine

11/06/2016 at 06:02PM

14
#720 - Ignacio Catalina / @ignaciocatalina

11/08/2016 at 02:13PM