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

3888 active golfers, 12630 entries

Leaderboard (lowest score wins):
14
#751 - Anthony BERNARD / @TweetTontony

04/26/2017 at 11:47PM

14
#752 - Daniel / @Daniel00288663

04/27/2017 at 10:13AM

14
#753 - Chris Robertson / @chrisxrobertson

04/30/2017 at 01:50PM

14
#754 - Acid One / @AcidOne2

05/02/2017 at 01:25PM

14
#755 - Peter Gundel / @peterfication

05/04/2017 at 11:51AM

14
#756 - Arnie Palmies / @ArnieViPalmies

05/06/2017 at 02:59AM

14
#757 - Clement Keirua / @clemkeirua

05/06/2017 at 02:22PM

14
#758 - Swan Benoit / @Rwangum

05/11/2017 at 05:20AM

14
#759 - Wang Wu / @rubepeg

05/11/2017 at 01:25PM

14
#760 - Jeff Kelly / @cheibriados

05/13/2017 at 07:58PM

14
#761 - ЯRicardo / @TresErresCo

05/17/2017 at 12:14AM

14
#762 - mesacul / @mesacul

05/23/2017 at 04:59AM

14
#763 - Jason Villanueva / @Json_V1

05/24/2017 at 01:52AM

14
#764 - Jye Sawtell-Rickson / @jsawtellrickson

05/31/2017 at 09:40AM

14
#765 - fakta om sniglar / @fakta_sniglar

05/31/2017 at 02:30PM

14
#766 - TongHyun Kim / @crowdy

05/31/2017 at 02:44PM

14
#767 - ybw / @yossibenwolf

06/05/2017 at 07:59AM

14
#768 - Carl Egbert / @CarlOEgbert

06/09/2017 at 07:01AM

14
#769 - Joel Meyer-Hamme / @JoelMeyerHamme

06/18/2017 at 03:54PM

14
#770 - Super VedoVatto / @supervedovatto

06/20/2017 at 05:56PM

14
#771 - Sebastián Etra / @EtraStyle

06/22/2017 at 07:45PM

14
#772 - Pfhor / @PfhorShark

06/27/2017 at 12:25AM

14
#773 - GeneralSunbear / @GeneralSunbear

06/27/2017 at 08:45PM

14
#774 - akanb / @GAkt6L6SlKhy8zA

06/28/2017 at 03:58AM

14
#775 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 05:45PM

14
#776 - el pollo diablo / @bjagojevich

06/29/2017 at 05:08AM

14
#777 - 杨洋 / @176795444

07/01/2017 at 06:43AM

14
#778 - Fred Sladkey / @fsladkey

07/04/2017 at 05:58PM

14
#779 - Anne Pacalet / @_Anne_P

07/06/2017 at 11:25AM

14
#780 - Jon Barker / @j0nbarker

07/13/2017 at 09:15AM