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

3726 active golfers, 12061 entries

Leaderboard (lowest score wins):
18
#2671 - Leonid K. / @AzorejK

08/26/2014 at 09:08AM

18
#2672 - Darrin McCarthy / @darrinmc

08/30/2014 at 05:16AM

18
#2673 - Jonas / @j0na3

09/11/2014 at 09:23PM

18
#2674 - Wandering ponderer / @0proxycon

09/28/2014 at 11:49AM

18
#2675 - takashi / @k_takashi0309

10/08/2014 at 01:12PM

18
#2676 - jake worth / @jwworth

10/11/2014 at 05:32PM

18
#2677 - Michael Kolupaev / @al13n321

10/28/2014 at 11:20PM

18
#2678 - Jesse Morton / @Jesse_Motion

11/03/2014 at 07:12AM

18
#2679 - √Čric Calvayrac / @xarmux2

11/05/2014 at 11:39PM

18
#2680 - Brian Sloan / @BrianSloan2

11/12/2014 at 03:56AM

18
#2681 - jiangchuan / @tommy_he

11/15/2014 at 09:57AM

18
#2682 - Samuel Masuy / @samasuy

11/16/2014 at 05:26PM

18
#2683 - Glauco Pires / @grpires

11/24/2014 at 11:03PM

18
#2684 - nonplus / @nonplus_

12/01/2014 at 10:27PM

18
#2685 - Alex Serebryakov / @Doc_Livesey

12/03/2014 at 08:08AM

18
#2686 - Andrew Joe / @andrewajoe

02/01/2015 at 03:54AM

18
#2687 - Daniel V Stankevich / @standeo

02/05/2015 at 06:34AM

18
#2688 - Allen Li / @thenightawl

03/10/2015 at 01:29AM

18
#2689 - William Ott / @oddalot

04/07/2015 at 07:24PM

18
#2690 - Hendrik Lammers / @hendriklammers

04/16/2015 at 06:00PM

18
#2691 - Rijnard van Tonder / @rvtond

05/02/2015 at 05:44PM

18
#2692 - Spy / @thatspysaspy

05/12/2015 at 10:31PM

18
#2693 - Mike Stewart / @mikrostew

05/27/2015 at 11:32PM

18
#2694 - Marco Antognini / @MrHiura

05/30/2015 at 04:45PM

18
#2695 - Chris / @crr0004

06/25/2015 at 07:41AM

18
#2696 - Shizukesa / @Shizukesa

07/06/2015 at 06:43PM

18
#2697 - d;-) / @pedrobearer

07/13/2015 at 03:46PM

18
#2698 - fantome / @fantome84

07/23/2015 at 02:47PM

18
#2699 - aisapatino / @aisapatino

07/30/2015 at 04:26AM

18
#2700 - JerryChiu / @pv31508

08/19/2015 at 03:16PM