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

3558 active golfers, 11439 entries

Leaderboard (lowest score wins):
19
#2731 - blamitter ✏️ / @blamitter

04/23/2014 at 04:50PM

19
#2732 - nikola chochkov / @gooodini

05/14/2014 at 12:17PM

19
#2733 - Angelos Mouzakitis / @Gr33kR

05/30/2014 at 09:59PM

19
#2734 - Andreas Karlsson / @akarl_

06/05/2014 at 07:00PM

19
#2735 - Дмитрий Халанский / @vault123dweller

06/09/2014 at 03:15PM

19
#2736 - blabla / @pal_crystal

06/23/2014 at 10:18PM

19
#2737 - TapTemplate / @TapTemplate

06/25/2014 at 10:33PM

19
#2738 - Mandy Choi / @mundi_c

06/27/2014 at 12:39AM

19
#2739 - Paulo Schneider / @pschneider

06/30/2014 at 07:26PM

19
#2740 - Eric Hu / @HuPineapple

07/06/2014 at 08:09AM

19
#2741 - starrynte / @starrynte

07/10/2014 at 05:57PM

19
#2742 - 俊吉 / @datddffbyi

07/12/2014 at 02:04PM

19
#2743 - Austin Cormier / @lotusmorc

07/17/2014 at 10:15PM

19
#2744 - evimgolf / @evimgolf

09/21/2014 at 07:37PM

19
#2745 - PierreAdrien Buisson / @pabuisson

09/22/2014 at 07:08PM

19
#2746 - marcher / @marchervimgolf

10/07/2014 at 12:11AM

19
#2747 - George Crabtree / @supercrabtree

10/17/2014 at 10:48PM

19
#2748 - ЕвгенийВ / @imater

10/27/2014 at 05:22AM

19
#2749 - javavim / @Javavim

11/11/2014 at 11:07PM

19
#2750 - Eric Fode / @Ericfode

11/17/2014 at 09:23PM

19
#2751 - Quinn McHenry / @qmchenry

12/02/2014 at 01:41PM

19
#2752 - Alexandre Jouandin / @Allezxandre

12/14/2014 at 12:10PM

19
#2753 - Tact Overflow / @muppling

01/07/2015 at 01:24PM

19
#2754 - Matt Walsh / @mattwalsh

01/17/2015 at 12:50AM

19
#2755 - Romain Salles / @romain_salles

01/21/2015 at 01:26AM

19
#2756 - )ouni|(antola / @jouni_kantola

01/28/2015 at 12:27AM

19
#2757 - Omer Lachish / @rauchy

02/15/2015 at 12:59PM

19
#2758 - Berlin / @Berli92

02/18/2015 at 06:31PM

19
#2759 - Martin Liberg / @marreman

02/18/2015 at 08:54PM

19
#2760 - Der Graddler / @DerGraddler

02/20/2015 at 02:34AM