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

3995 active golfers, 13063 entries

Leaderboard (lowest score wins):
15
#1591 - Russell Ball / @rtball2

03/07/2017 at 01:37AM

15
#1592 - Daniel Hjelm / @dhjelm

03/08/2017 at 12:17PM

15
#1593 - xwle / @xwle

03/11/2017 at 04:28PM

15
#1594 - Alexander Bessonov / @nonsleepr

03/12/2017 at 09:33PM

15
#1595 - GVest Two / @GvestTwo

03/24/2017 at 08:32AM

15
#1596 - Solomon / @Trugbildjaeger

03/30/2017 at 09:57PM

15
#1597 - Aman Singhal / @helixinverse

03/31/2017 at 03:08AM

15
#1598 - Roland TheFreak / @_TheFreak_

04/17/2017 at 09:40PM

15
#1599 - Armin Grodon / @ArminGrodon

04/19/2017 at 09:23PM

15
#1600 - Anton Matveev / @aush_tx

05/01/2017 at 11:56AM

15
#1601 - Stefan Uhl / @der_wuschl

05/02/2017 at 10:43AM

15
#1602 - Allen | Wheels / @SRWheel5

05/03/2017 at 03:33PM

15
#1603 - Anil / @anilkrishna_m

05/10/2017 at 04:52PM

15
#1604 - korzenmichal / @korzenmichal

05/13/2017 at 10:55AM

15
#1605 - jakeroberts / @jakeroberts

05/21/2017 at 02:06PM

15
#1606 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 09:01PM

15
#1607 - Rodrigo Dorantes G. / @ruydg

05/27/2017 at 01:33PM

15
#1608 - David Gustavsson / @mrGustaphe

06/08/2017 at 02:56PM

15
#1609 - MS / @schrectacular

06/09/2017 at 08:57PM

15
#1610 - Robert Goeddel / @f0rdpr3fect

06/15/2017 at 10:28PM

15
#1611 - moritz / @moritz45081535

06/18/2017 at 01:26PM

15
#1612 - Christian Stammen / @c0smiq

06/29/2017 at 11:55AM

15
#1613 - John Marks / @__jmarks

07/03/2017 at 08:10PM

15
#1614 - Jacob Buete / @JBuete

07/04/2017 at 05:00AM

15
#1615 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/08/2017 at 10:03PM

15
#1616 - Gurukandhamoorthi / @Gurukandhamoor1

07/09/2017 at 03:51PM

15
#1617 - Sgt. Coon / @Sgt_Coon

07/13/2017 at 03:30PM

15
#1618 - 黒澤亮二 / @rjkuro

07/22/2017 at 01:28AM

15
#1619 - Adrian Staniec / @adrianstaniec

08/06/2017 at 05:20PM

15
#1620 - Baine Wedlock / @BaineWedlock

08/10/2017 at 07:15PM