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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
16
#2161 - Eric Kever / @codeoverlode

09/29/2014 at 10:25PM

16
#2162 - JForstreuter / @JForstr

10/06/2014 at 01:00PM

16
#2163 - Jose Gutierrez / @Jogusa

10/07/2014 at 09:31PM

16
#2164 - Violette Vanadium / @ViolettVanadium

10/08/2014 at 05:58AM

16
#2165 - Eduardo / @earada

10/09/2014 at 10:55AM

16
#2166 - Narek / @NarekCat

10/10/2014 at 06:32PM

16
#2167 - Vallaa / @2qq3KpoVpQ7xxDK

10/14/2014 at 09:45PM

16
#2168 - MiningMarsh / @MiningMarsh

10/15/2014 at 06:35PM

16
#2169 - jptomoya / @_jptomoya

10/17/2014 at 12:44PM

16
#2170 - David / @daywiss

10/23/2014 at 03:17PM

16
#2171 - Mauro Persano / @fzort

11/15/2014 at 02:55PM

16
#2172 - John Smith / @temp_soraismus

11/18/2014 at 02:41AM

16
#2173 - Jan Novak / @odpadnimail

11/18/2014 at 11:36PM

16
#2174 - Tiago Royer / @royertiago

11/20/2014 at 02:32AM

16
#2175 - Josu Oyanguren / @josuoyanguren

11/21/2014 at 03:21PM

16
#2176 - tacke / @tacke_jp

11/21/2014 at 04:45PM

16
#2177 - Shanky Surana / @shankysurana

11/27/2014 at 05:40AM

16
#2178 - aaron sullivan / @aaronsull

11/27/2014 at 08:21PM

16
#2179 - Yoav Weiss / @yoavweiss

12/03/2014 at 06:01AM

16
#2180 - Rao Zvorovski / @RaoZvorovski

12/05/2014 at 11:04AM

16
#2181 - benekeusz / @benekeusz

12/10/2014 at 03:24AM

16
#2182 - Kuba Borowski / @prajmus

12/10/2014 at 02:52PM

16
#2183 - Daniel Rødskog / @daniero

12/10/2014 at 09:49PM

16
#2184 - Steve Alison / @Steve_Alison

12/12/2014 at 11:26PM

16
#2185 - kobby / @_kafdot_

12/13/2014 at 12:42AM

16
#2186 - Robertus / @Chachinder

12/16/2014 at 12:04PM

16
#2187 - 1upまむ9 / @mamunine

12/16/2014 at 02:55PM

16
#2188 - r. / @rmarvie

12/26/2014 at 12:39PM

16
#2189 - Tamás Torba / @torbatamas

12/30/2014 at 07:30PM

16
#2190 - ゆきみ / @edp02

01/01/2015 at 08:56AM