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

3939 active golfers, 12824 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

14
#16 - Urtica dioica / @udioica

05/15/2013 at 11:49PM

14
#17 - hafsteinn / @hafsteinn

05/19/2013 at 08:51PM

14
#18 - Paul Nelson / @_Pablosan

05/20/2013 at 05:53PM

14
#19 - Nathan Bouscal / @nbouscal

05/27/2013 at 09:06PM

14
#20 - Joe Jackson / @anything_joes

06/03/2013 at 08:04PM

14
#21 - Al / @96258

06/06/2013 at 03:48AM

14
#22 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:02PM

14
#23 - jk / @kewnapse

06/07/2013 at 11:30PM

14
#24 - Sebastian Kusnier / @skusnier

06/26/2013 at 12:43PM

14
#25 - James Davis / @tripvg

06/26/2013 at 08:49PM

14
#26 - Łukasz Bujakowski / @eggxtreme

06/27/2013 at 11:30AM

14
#27 - Steve Tjoa / @stevetjoa

07/02/2013 at 07:54AM

14
#28 - powertomato / @powertomato

07/03/2013 at 11:17PM

14
#29 - Norm Fasey / @DeathRay1977

07/04/2013 at 11:29PM

14
#30 - Thiago Alves / @townk

07/05/2013 at 06:18AM