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

3919 active golfers, 12736 entries

Leaderboard (lowest score wins):
14
#751 - Tom BP / @ThosBP

04/20/2017 at 10:11AM

14
#752 - 梧桐王子 / @WutongYujie

04/21/2017 at 12:04PM

14
#753 - Jason Hooper 🇨🇦 / @jasonincanada

04/22/2017 at 11:17PM

14
#754 - Pratik Prasad / @pratik

04/23/2017 at 03:07PM

14
#755 - Ionel Manolache / @namnoi38

04/25/2017 at 04:05PM

14
#756 - Anthony BERNARD / @TweetTontony

04/26/2017 at 11:47PM

14
#757 - Daniel / @Daniel00288663

04/27/2017 at 10:13AM

14
#758 - Chris Robertson / @chrisxrobertson

04/30/2017 at 01:50PM

14
#759 - Acid One / @AcidOne2

05/02/2017 at 01:25PM

14
#760 - Peter Gundel / @peterfication

05/04/2017 at 11:51AM

14
#761 - Arnie Palmies / @ArnieViPalmies

05/06/2017 at 02:59AM

14
#762 - Clement Keirua / @clemkeirua

05/06/2017 at 02:22PM

14
#763 - Swan Benoit / @Rwangum

05/11/2017 at 05:20AM

14
#764 - Wang Wu / @rubepeg

05/11/2017 at 01:25PM

14
#765 - Jeff Kelly / @cheibriados

05/13/2017 at 07:58PM

14
#766 - ЯRicardo / @TresErresCo

05/17/2017 at 12:14AM

14
#767 - mesacul / @mesacul

05/23/2017 at 04:59AM

14
#768 - Jason Villanueva / @Json_V1

05/24/2017 at 01:52AM

14
#769 - Jye Sawtell-Rickson / @jsawtellrickson

05/31/2017 at 09:40AM

14
#770 - fakta om sniglar / @fakta_sniglar

05/31/2017 at 02:30PM

14
#771 - TongHyun Kim / @crowdy

05/31/2017 at 02:44PM

14
#772 - ybw / @yossibenwolf

06/05/2017 at 07:59AM

14
#773 - Carl Egbert / @CarlOEgbert

06/09/2017 at 07:01AM

14
#774 - Joel Meyer-Hamme / @JoelMeyerHamme

06/18/2017 at 03:54PM

14
#775 - Super VedoVatto / @supervedovatto

06/20/2017 at 05:56PM

14
#776 - Sebastián Etra / @EtraStyle

06/22/2017 at 07:45PM

14
#777 - Pfhor / @PfhorShark

06/27/2017 at 12:25AM

14
#778 - GeneralSunbear / @GeneralSunbear

06/27/2017 at 08:45PM

14
#779 - akanb / @GAkt6L6SlKhy8zA

06/28/2017 at 03:58AM

14
#780 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 05:45PM