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

3979 active golfers, 13005 entries

Leaderboard (lowest score wins):
16
#2011 - Dafydd Crosby / @DafyddCrosby

11/18/2013 at 02:44AM

16
#2012 - david ta / @tadavid

11/20/2013 at 11:51PM

16
#2013 - Peter Tillemans / @snamellit

11/23/2013 at 11:05PM

16
#2014 - Oliver Daniel / @olivermdaniel

11/25/2013 at 10:22PM

16
#2015 - Raphael / @rnstlr

11/26/2013 at 09:34PM

16
#2016 - Nick Barnwell / @nickbarnwell

12/01/2013 at 05:38AM

16
#2017 - Lieven Keersmaekers / @LievenKeersmaek

12/02/2013 at 05:40PM

16
#2018 - Evan Shrubsole / @evanshrubsole

12/02/2013 at 07:56PM

16
#2019 - Simon Lindholm / @simonlindholm10

12/04/2013 at 11:32PM

16
#2020 - John Gray Cole / @johngraycole

12/05/2013 at 01:42AM

16
#2021 - Gary Stewart / @omgstew

12/06/2013 at 12:15AM

16
#2022 - a24nks / @a24nks

12/09/2013 at 10:39AM

16
#2023 - Foo Bar / @FooWatson

12/10/2013 at 03:10PM

16
#2024 - joe smoe / @joesmoevim

12/10/2013 at 08:36PM

16
#2025 - G K / @truecheshire

12/14/2013 at 08:06PM

16
#2026 - ifnspifn / @ifnspifn

12/15/2013 at 04:02AM

16
#2027 - Kasper Lauritzen / @KPLauritzen

12/15/2013 at 01:59PM

16
#2028 - Simon Eskildsen / @Sirupsen

12/17/2013 at 12:25AM

16
#2029 - Phil Tornquist / @PhilTornquist

12/17/2013 at 08:21AM

16
#2030 - adamblank / @adamblank

12/20/2013 at 07:51PM

16
#2031 - Sam Burk / @smwbk

12/21/2013 at 10:16PM

16
#2032 - gturri / @g_turri

12/22/2013 at 12:32PM

16
#2033 - WC / @WcMmatvienko

12/27/2013 at 05:27AM

16
#2034 - Joon Ho Cho / @cioner

12/30/2013 at 07:34PM

16
#2035 - Tibor Claassen / @codebeige

01/01/2014 at 09:21AM

16
#2036 - Adam Rutkowski / @hq1aerosol

01/01/2014 at 12:39PM

16
#2037 - Diego Sevilla Ruiz / @diegosevilla

01/01/2014 at 10:14PM

16
#2038 - Daniel Gray / @DanielFGray

01/05/2014 at 09:37AM

16
#2039 - Clinton シ / @iblamefish

01/05/2014 at 06:43PM

16
#2040 - Alexander Borysov / @ab99c5e2

01/07/2014 at 01:46PM