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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
17
#2731 - Amado Antonini / @AmadoAntonini

03/14/2019 at 12:31PM

17
#2732 - hoge2341836 / @RootShunsuke

04/07/2019 at 04:41AM

17
#2733 - JvdB01 / @JvdB001

05/07/2019 at 07:13PM

17
#2734 - Phoon / @justflashhim

05/10/2019 at 01:56PM

17
#2735 - JonasS / @jonas42s

05/29/2019 at 10:11AM

17
#2736 - 𝕛𝕓𝕣𝕠𝕨𝕟 / @Roguelazer

06/12/2019 at 11:36PM

17
#2737 - seul / @seul15987381

06/18/2019 at 08:53AM

17
#2738 - Rohit Jena / @rohitrango

07/07/2019 at 05:10AM

17
#2739 - r / @nameequalsmain

07/16/2019 at 12:45PM

17
#2740 - Nick Ciardiello / @NCiardiello

07/20/2019 at 06:31PM

17
#2741 - Pittson / @Pittson95

07/31/2019 at 07:20PM

17
#2742 - asdasd1337 / @asdasd13372

09/01/2019 at 09:55AM

17
#2743 - damien / @GreatTestyTest

11/11/2019 at 01:02AM

17
#2744 - jonathangai / @jonathangai1

11/26/2019 at 04:37PM

17
#2745 - Bitt Faulk / @bittfaulk

02/20/2020 at 09:20PM

17
#2746 - asierrayk / @asierrayk

03/14/2020 at 07:42PM

17
#2747 - Ivan / @SpiritHNTR

03/18/2020 at 12:21PM

17
#2748 - Jason / @roosjason

04/09/2020 at 09:37AM

17
#2749 - volandkit / @volandkit

04/20/2020 at 05:46PM

17
#2750 - Mack Hutsell / @sellshuts

05/25/2020 at 01:02AM

17
#2751 - Di Liu / @Skyerliu

06/21/2020 at 01:03PM

17
#2752 - Ivan Krukov / @i_krukov

07/02/2020 at 01:33AM

17
#2753 - jackmark / @jackmar14540583

07/11/2020 at 06:54AM

17
#2754 - mindgitrwx / @mindgitrwx

08/08/2020 at 02:23AM

17
#2755 - Yāsky / @Yaasky

09/01/2020 at 05:04PM

17
#2756 - Christ / @Christ46234422

09/06/2020 at 01:32AM

17
#2757 - Shunichi Kanade / @shunkana

09/06/2020 at 06:25AM

17
#2758 - Demian Martinez / @demianuco

11/01/2020 at 11:43PM

17
#2759 - Alon Samuel / @AlonSamuel1

11/06/2020 at 12:59PM

17
#2760 - nd183 / @nd1832

12/09/2020 at 11:17AM