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

3272 active golfers, 10474 entries

Leaderboard (lowest score wins):
14
#571 - Kirill Cherkashin / @kirjs

08/31/2015 at 09:04PM

14
#572 - oscar / @zonza_mas

09/02/2015 at 01:22PM

14
#573 - Nicholas Marrone / @nickmarrone

09/05/2015 at 10:40PM

14
#574 - Slobodan Mišković / @slobomiskovic

09/08/2015 at 05:56AM

14
#575 - MikeT / @mik3t

09/11/2015 at 02:39AM

14
#576 - Joey / @joeyism101

09/11/2015 at 03:18AM

14
#577 - Gerhard Gappmeier / @gergap

09/11/2015 at 08:29PM

14
#578 - Jon Nyman / @NymanJon

09/12/2015 at 10:17AM

14
#579 - 0e4ef622 / @0e4ef622

09/13/2015 at 01:41PM

14
#580 - Ben Vandervalk / @benvvalk

09/14/2015 at 02:20AM

14
#581 - meribold / @mribld

09/26/2015 at 01:14AM

14
#582 - Mike Adams / @davis_cromwell

09/27/2015 at 12:40AM

14
#583 - Self Doc Code / @self_doc_code

09/27/2015 at 08:17PM

14
#584 - Marc Cathomen / @marccathomen

09/27/2015 at 11:59PM

14
#585 - Walker Boh / @walker_boh

09/30/2015 at 08:45AM

14
#586 - compuserved / @compuserved

10/04/2015 at 04:56AM

14
#587 - ojung / @oskrjung

10/04/2015 at 10:38AM

14
#588 - Chris Jordan / @chrisjordan_uk

10/11/2015 at 06:14PM

14
#589 - coltruindie / @e10nevwa

10/13/2015 at 11:39PM

14
#590 - 朱国栋 / @GuodongZhu

10/15/2015 at 02:18AM

14
#591 - Anno / @AnnoVinyl

10/15/2015 at 01:51PM

14
#592 - Peter / @sunirbmag

10/24/2015 at 04:40PM

14
#593 - Justin Sermeno / @justinsermeno

10/29/2015 at 06:00PM

14
#594 - herbage / @herbage2

11/04/2015 at 12:30PM

14
#595 - Robert Clark / @rsclark2

11/07/2015 at 07:53PM

14
#596 - Faat / @i_faat

11/09/2015 at 04:59PM

14
#597 - Curt Matz / @sitrucz

11/11/2015 at 02:44PM

14
#598 - David Mauskop / @mauskop

11/12/2015 at 07:54PM

14
#599 - kris / @0xkrp

11/13/2015 at 12:20PM

14
#600 - Shundan Xiao / @sherryxiao1988

11/16/2015 at 07:58PM