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

3978 active golfers, 13001 entries

Leaderboard (lowest score wins):
16
#2071 - Kevin Disneur / @kdisneur

02/10/2014 at 07:15PM

16
#2072 - Billy McCarthy / @reshippie

02/10/2014 at 09:02PM

16
#2073 - d d / @DDAZZA0

02/14/2014 at 02:28PM

16
#2074 - Steffen Schröder / @PanSteffek

02/16/2014 at 11:04PM

16
#2075 - T0ha / @T0ha666

02/18/2014 at 04:01AM

16
#2076 - shock_one / @shock_one

02/20/2014 at 04:30PM

16
#2077 - Jean-PhilippeBurelle / @jpburelle

02/23/2014 at 05:19PM

16
#2078 - Matthew Draper / @_matthewd

02/26/2014 at 04:54PM

16
#2079 - Alexey Kornilov / @klexae

02/26/2014 at 05:06PM

16
#2080 - Peter J. Foti / @peterjfoti

02/27/2014 at 01:21AM

16
#2081 - Untruth / @NotSongLyrics

02/27/2014 at 01:38AM

16
#2082 - Lucius L. Hilley III / @unkmar

02/27/2014 at 07:16AM

16
#2083 - Syl / @SylvestreGallon

02/27/2014 at 10:36AM

16
#2084 - Angus McInnes / @eigenstuff

03/06/2014 at 11:48AM

16
#2085 - Brandon / @bjpowel2

03/06/2014 at 09:00PM

16
#2086 - Timothy Lin / @lzh9102

03/08/2014 at 02:37AM

16
#2087 - Matt Widmann / @mattwidmann

03/10/2014 at 02:26PM

16
#2088 - notpsilo / @notpsilo

03/12/2014 at 06:15PM

16
#2089 - RB / @powerage88

03/13/2014 at 12:27AM

16
#2090 - ineb / @ineb0

03/13/2014 at 07:24PM

16
#2091 - devper94 / @devper94

03/16/2014 at 08:33AM

16
#2092 - Benji Fisher / @benji17fisher

03/19/2014 at 12:49PM

16
#2093 - God / @iamgod

03/20/2014 at 11:00PM

16
#2094 - Jacob / @jayekub

03/22/2014 at 11:51PM

16
#2095 - Guy Rozen / @HolyEggplant

03/25/2014 at 01:41PM

16
#2096 - vansan / @VinceVansan

03/25/2014 at 03:07PM

16
#2097 - Aidan Brumsickle / @aidanbrumsickle

03/26/2014 at 04:10PM

16
#2098 - Michael Klitgaard / @EdgyScience

03/28/2014 at 09:25PM

16
#2099 - ryk / @rykarn

03/29/2014 at 01:02PM

16
#2100 - Nate R / @80vs90

04/08/2014 at 08:37PM