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

3983 active golfers, 13024 entries

Leaderboard (lowest score wins):
14
#781 - Chris Robertson / @chrisxrobertson

04/30/2017 at 01:50PM

14
#782 - Acid One / @AcidOne2

05/02/2017 at 01:25PM

14
#783 - Peter Gundel / @peterfication

05/04/2017 at 11:51AM

14
#784 - Arnie Palmies / @ArnieViPalmies

05/06/2017 at 02:59AM

14
#785 - Clement Keirua / @clemkeirua

05/06/2017 at 02:22PM

14
#786 - Swan Benoit / @Rwangum

05/11/2017 at 05:20AM

14
#787 - Wang Wu / @rubepeg

05/11/2017 at 01:25PM

14
#788 - Jeff Kelly / @cheibriados

05/13/2017 at 07:58PM

14
#789 - ЯRicardo / @TresErresCo

05/17/2017 at 12:14AM

14
#790 - mesacul / @mesacul

05/23/2017 at 04:59AM

14
#791 - Jason Villanueva / @Json_V1

05/24/2017 at 01:52AM

14
#792 - Jye Sawtell-Rickson / @jsawtellrickson

05/31/2017 at 09:40AM

14
#793 - fakta om sniglar / @fakta_sniglar

05/31/2017 at 02:30PM

14
#794 - TongHyun Kim / @crowdy

05/31/2017 at 02:44PM

14
#795 - ybw / @yossibenwolf

06/05/2017 at 07:59AM

14
#796 - Carl Egbert / @CarlOEgbert

06/09/2017 at 07:01AM

14
#797 - Joel Meyer-Hamme / @JoelMeyerHamme

06/18/2017 at 03:54PM

14
#798 - Super VedoVatto / @supervedovatto

06/20/2017 at 05:56PM

14
#799 - Sebastián Etra / @EtraStyle

06/22/2017 at 07:45PM

14
#800 - Pfhor / @PfhorShark

06/27/2017 at 12:25AM

14
#801 - GeneralSunbear / @GeneralSunbear

06/27/2017 at 08:45PM

14
#802 - akanb / @GAkt6L6SlKhy8zA

06/28/2017 at 03:58AM

14
#803 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 05:45PM

14
#804 - el pollo diablo / @bjagojevich

06/29/2017 at 05:08AM

14
#805 - 杨洋 / @176795444

07/01/2017 at 06:43AM

14
#806 - Fred Sladkey / @fsladkey

07/04/2017 at 05:58PM

14
#807 - Anne Pacalet / @_Anne_P

07/06/2017 at 11:25AM

14
#808 - Jon Barker / @j0nbarker

07/13/2017 at 09:15AM

14
#809 - apartment1812 / @apartment18121

07/14/2017 at 12:35AM

14
#810 - Robin Ramael / @RobinRamael

07/14/2017 at 02:03PM