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

3561 active golfers, 11449 entries

Leaderboard (lowest score wins):
18
#2551 - jiangchuan / @tommy_he

11/15/2014 at 09:57AM

18
#2552 - Samuel Masuy / @samasuy

11/16/2014 at 05:26PM

18
#2553 - Glauco Pires / @grpires

11/24/2014 at 11:03PM

18
#2554 - nonplus / @nonplus_

12/01/2014 at 10:27PM

18
#2555 - Alex Serebryakov / @Doc_Livesey

12/03/2014 at 08:08AM

18
#2556 - Andrew Joe / @andrewajoe

02/01/2015 at 03:54AM

18
#2557 - Daniel V Stankevich / @standeo

02/05/2015 at 06:34AM

18
#2558 - Allen Li / @thenightawl

03/10/2015 at 01:29AM

18
#2559 - William Ott / @oddalot

04/07/2015 at 07:24PM

18
#2560 - Hendrik Lammers / @hendriklammers

04/16/2015 at 06:00PM

18
#2561 - Rijnard van Tonder / @rvtond

05/02/2015 at 05:44PM

18
#2562 - Spy / @thatspysaspy

05/12/2015 at 10:31PM

18
#2563 - Mike Stewart / @mikrostew

05/27/2015 at 11:32PM

18
#2564 - Marco Antognini / @MrHiura

05/30/2015 at 04:45PM

18
#2565 - Chris / @crr0004

06/25/2015 at 07:41AM

18
#2566 - Shizukesa / @Shizukesa

07/06/2015 at 06:43PM

18
#2567 - d;-) / @pedrobearer

07/13/2015 at 03:46PM

18
#2568 - fantome / @fantome84

07/23/2015 at 02:47PM

18
#2569 - aisapatino / @aisapatino

07/30/2015 at 04:26AM

18
#2570 - JerryChiu / @pv31508

08/19/2015 at 03:16PM

18
#2571 - els / @round_els

08/20/2015 at 06:25PM

18
#2572 - Dawid retkiewicz / @dawret

08/21/2015 at 10:48AM

18
#2573 - Dan Moldovan / @Lenea92

08/27/2015 at 11:05AM

18
#2574 - Yaroslav Kanarev / @yarosurabu

09/07/2015 at 02:33PM

18
#2575 - Lost Web Designs / @lostwebdesign

09/09/2015 at 04:07PM

18
#2576 - David Stimpert / @DavidStimpert

09/22/2015 at 12:36AM

18
#2577 - Ethan Madison / @_ethanmad

09/25/2015 at 04:55AM

18
#2578 - Cory Knapp / @coryknapp

09/26/2015 at 02:24AM

18
#2579 - Julian Andrews / @NoLemurs

10/03/2015 at 07:45PM

18
#2580 - Dian Xiao / @dian_xiao

10/11/2015 at 07:00PM