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

3903 active golfers, 12677 entries

Leaderboard (lowest score wins):
14
#661 - Michael / @michael40226613

05/23/2016 at 05:20AM

14
#662 - Slawek Zachcial / @SlawekZachcial

05/23/2016 at 09:28PM

14
#663 - John Doe Sr. / @johndoe67890543

05/26/2016 at 07:23PM

14
#664 - Ryan Dwyer / @ryan_dwyer

06/01/2016 at 06:10AM

14
#665 - Artūras Zakrevskis / @AZakrevskis

06/02/2016 at 01:04PM

14
#666 - Arijus / @argshook

06/02/2016 at 01:05PM

14
#667 - Tautvilas / @TautviIas

06/02/2016 at 01:08PM

14
#668 - tgmeng / @lazy_fabric

06/06/2016 at 08:37AM

14
#669 - jan sos / @jann6373

06/12/2016 at 03:01PM

14
#670 - TaoChen / @632143592Tao

06/15/2016 at 08:49AM

14
#671 - Marko / @suchtie

06/30/2016 at 06:47AM

14
#672 - Perry van Schaijk / @PvSchaijk

06/30/2016 at 02:01PM

14
#673 - Davide / @DvdMgr

07/01/2016 at 06:52AM

14
#674 - Pedro Santos / @pedrosans

07/20/2016 at 04:34AM

14
#675 - Alonzo / @tolver_a

07/22/2016 at 08:08AM

14
#676 - Jake Maul / @jake_maul

08/03/2016 at 06:41AM

14
#677 - Ameen P / @Ameen_P1

08/09/2016 at 05:48PM

14
#678 - Peter Brynza / @v3_1

08/20/2016 at 05:39PM

14
#679 - jaresty / @jaresty

08/23/2016 at 02:52PM

14
#680 - Richard O'Brien / @richard0b

08/24/2016 at 02:47AM

14
#681 - Stephen Aument / @saument

08/30/2016 at 08:44PM

14
#682 - jdupont655 / @jdupont655

09/01/2016 at 06:33PM

14
#683 - hor1ace / @hor3ace

09/07/2016 at 07:57PM

14
#684 - 알카포 / @alkpo12

09/09/2016 at 06:06AM

14
#685 - Rasmus / @SBareSSomErMig

09/16/2016 at 08:55PM

14
#686 - Allen57 / @ludo57310

09/18/2016 at 05:28PM

14
#687 - davidcgv / @davidcgv

09/24/2016 at 06:50PM

14
#688 - Anthony Ardito / @aardito21

09/25/2016 at 11:48PM

14
#689 - manbogot / @gmanbor

10/02/2016 at 09:52AM

14
#690 - Roman Zaharenkov / @rzaharenkov

10/03/2016 at 08:41AM