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

3965 active golfers, 12944 entries

Leaderboard (lowest score wins):
13
#1 - Marion Oldman / @ThatBigCock

01/15/2021 at 01:26AM

13
#2 - Matthew Jurenka / @JurenkaMatthew

01/19/2021 at 06:16AM

13
#3 - John Braxler / @braxler

01/19/2021 at 02:32PM

13
#4 - Michael Ye / @mly32michael

01/24/2021 at 05:27PM

13
#5 - 時空裂縫 / @0xdcbf

01/06/2022 at 08:11AM

13
#6 - Andreas Siegrist / @andreaszwei

02/03/2022 at 01:44PM

13
#7 - D. 👋 / @DCT_cpp

02/14/2022 at 01:50PM

13
#8 - Alex / @AlexanderHeatl2

05/27/2022 at 05:53PM

13
#9 - Brandon / @Brandon10678836

08/31/2022 at 11:45AM

13
#10 - math is what I hate / @mpnmbn

09/20/2022 at 05:51PM

13
#11 - 刘宏亮 / @AkeyCoy

09/24/2022 at 03:27AM

13
#12 - Akshay Barpute / @akshaybarpute

09/26/2022 at 02:12AM

13
#13 - Omar Alawadhi / @OmarAla59544225

10/19/2022 at 10:34PM

13
#14 - 咸糖🎯 / @GIA917229015

07/09/2023 at 11:46AM

13
#15 - Mohammad Apel Mahmod / @apel_mahmod

09/18/2023 at 07:05AM

13
#16 - asirago / @asiragoo

12/11/2023 at 09:46AM

13
#17 - sosa-daniel / @sosa-daniel

12/29/2023 at 08:02AM

13
#18 - Peppa Pig / @PeppaPigSg

06/09/2024 at 07:52AM

13
#19 - NotWearingPants / @NotWearingPants

08/06/2024 at 12:30AM

13
#20 - nickGPT / @nickandbro

08/28/2024 at 06:38PM

13
#21 - Suhaib Murshid / @suhaibm

09/28/2024 at 09:22AM

13
#22 - Andy / @andyfoster

02/02/2025 at 06:10PM

14
#23 - Urtica dioica / @udioica

05/15/2013 at 11:49PM

14
#24 - hafsteinn / @hafsteinn

05/19/2013 at 08:51PM

14
#25 - Paul Nelson / @_Pablosan

05/20/2013 at 05:53PM

14
#26 - Nathan Bouscal / @nbouscal

05/27/2013 at 09:06PM

14
#27 - Joe Jackson / @anything_joes

06/03/2013 at 08:04PM

14
#28 - Al / @96258

06/06/2013 at 03:48AM

14
#29 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:02PM

14
#30 - jk / @kewnapse

06/07/2013 at 11:30PM