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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
14
#781 - Wang Wu / @rubepeg

05/11/2017 at 01:25PM

14
#782 - Jeff Kelly / @cheibriados

05/13/2017 at 07:58PM

14
#783 - ЯRicardo / @TresErresCo

05/17/2017 at 12:14AM

14
#784 - mesacul / @mesacul

05/23/2017 at 04:59AM

14
#785 - Jason Villanueva / @Json_V1

05/24/2017 at 01:52AM

14
#786 - Jye Sawtell-Rickson / @jsawtellrickson

05/31/2017 at 09:40AM

14
#787 - fakta om sniglar / @fakta_sniglar

05/31/2017 at 02:30PM

14
#788 - TongHyun Kim / @crowdy

05/31/2017 at 02:44PM

14
#789 - ybw / @yossibenwolf

06/05/2017 at 07:59AM

14
#790 - Carl Egbert / @CarlOEgbert

06/09/2017 at 07:01AM

14
#791 - Joel Meyer-Hamme / @JoelMeyerHamme

06/18/2017 at 03:54PM

14
#792 - Super VedoVatto / @supervedovatto

06/20/2017 at 05:56PM

14
#793 - Sebastián Etra / @EtraStyle

06/22/2017 at 07:45PM

14
#794 - Pfhor / @PfhorShark

06/27/2017 at 12:25AM

14
#795 - GeneralSunbear / @GeneralSunbear

06/27/2017 at 08:45PM

14
#796 - akanb / @GAkt6L6SlKhy8zA

06/28/2017 at 03:58AM

14
#797 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 05:45PM

14
#798 - el pollo diablo / @bjagojevich

06/29/2017 at 05:08AM

14
#799 - 杨洋 / @176795444

07/01/2017 at 06:43AM

14
#800 - Fred Sladkey / @fsladkey

07/04/2017 at 05:58PM

14
#801 - Anne Pacalet / @_Anne_P

07/06/2017 at 11:25AM

14
#802 - Jon Barker / @j0nbarker

07/13/2017 at 09:15AM

14
#803 - apartment1812 / @apartment18121

07/14/2017 at 12:35AM

14
#804 - Robin Ramael / @RobinRamael

07/14/2017 at 02:03PM

14
#805 - Ryan McNamara / @MadDogMcNamara

07/16/2017 at 04:49PM

14
#806 - Gabriel Siqueira / @gabrielhsiq

07/26/2017 at 10:32AM

14
#807 - huho / @huho_xu

07/29/2017 at 05:24PM

14
#808 - devoh / @devvohh

07/30/2017 at 05:02PM

14
#809 - Aki Morooka / @Aki12117528

08/05/2017 at 09:05PM

14
#810 - godot / @gclair80

08/09/2017 at 09:54PM