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

3732 active golfers, 12076 entries

Leaderboard (lowest score wins):
18
#2701 - d;-) / @pedrobearer

07/13/2015 at 03:46PM

18
#2702 - fantome / @fantome84

07/23/2015 at 02:47PM

18
#2703 - aisapatino / @aisapatino

07/30/2015 at 04:26AM

18
#2704 - JerryChiu / @pv31508

08/19/2015 at 03:16PM

18
#2705 - els / @round_els

08/20/2015 at 06:25PM

18
#2706 - Dawid retkiewicz / @dawret

08/21/2015 at 10:48AM

18
#2707 - Dan Moldovan / @Lenea92

08/27/2015 at 11:05AM

18
#2708 - Yaroslav Kanarev / @yarosurabu

09/07/2015 at 02:33PM

18
#2709 - Lost Web Designs / @lostwebdesign

09/09/2015 at 04:07PM

18
#2710 - David Stimpert / @DavidStimpert

09/22/2015 at 12:36AM

18
#2711 - Ethan Madison / @_ethanmad

09/25/2015 at 04:55AM

18
#2712 - Cory Knapp / @coryknapp

09/26/2015 at 02:24AM

18
#2713 - Julian Andrews / @NoLemurs

10/03/2015 at 07:45PM

18
#2714 - Dian Xiao / @dian_xiao

10/11/2015 at 07:00PM

18
#2715 - Gerald Tilma / @GeraldTilma

10/18/2015 at 01:41PM

18
#2716 - ハチポケッツ / @8pockets

11/05/2015 at 12:04AM

18
#2717 - SK Liew / @liewsk

11/05/2015 at 02:46AM

18
#2718 - Lukas Froehlich / @lukasfroehlich

11/12/2015 at 10:59PM

18
#2719 - Pure OG Kush / @mcnuggies420

12/01/2015 at 11:03PM

18
#2720 - Karel Vervaeke / @karel1980

12/10/2015 at 03:02PM

18
#2721 - Alexander Ryzhikov / @Coobaha

01/05/2016 at 08:43PM

18
#2722 - Antoine Brunet / @AntoineBrunet

01/11/2016 at 07:01PM

18
#2723 - TS / @tiredsounds

01/27/2016 at 04:35AM

18
#2724 - Etienne Tremel / @etiennetremel

02/06/2016 at 01:39PM

18
#2725 - Marc Coquand / @MarcCoquand

02/16/2016 at 03:53PM

18
#2726 - John Traji / @JTraji

02/16/2016 at 08:26PM

18
#2727 - Markus Bohl / @bohl_markus

02/23/2016 at 09:14PM

18
#2728 - Benjamin Miller / @Bmiller14Miller

02/25/2016 at 07:58PM

18
#2729 - Siim Põder / @siimphh

03/08/2016 at 12:23AM

18
#2730 - Nicholas Pufal / @npufal

03/25/2016 at 02:58AM