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

3926 active golfers, 12775 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

14
#14 - Urtica dioica / @udioica

05/15/2013 at 11:49PM

14
#15 - hafsteinn / @hafsteinn

05/19/2013 at 08:51PM

14
#16 - Paul Nelson / @_Pablosan

05/20/2013 at 05:53PM

14
#17 - Nathan Bouscal / @nbouscal

05/27/2013 at 09:06PM

14
#18 - Joe Jackson / @anything_joes

06/03/2013 at 08:04PM

14
#19 - Al / @96258

06/06/2013 at 03:48AM

14
#20 - Shoop Da Whoop / @ShoopDaWhoop8

06/06/2013 at 08:02PM

14
#21 - jk / @kewnapse

06/07/2013 at 11:30PM

14
#22 - Sebastian Kusnier / @skusnier

06/26/2013 at 12:43PM

14
#23 - James Davis / @tripvg

06/26/2013 at 08:49PM

14
#24 - Łukasz Bujakowski / @eggxtreme

06/27/2013 at 11:30AM

14
#25 - Steve Tjoa / @stevetjoa

07/02/2013 at 07:54AM

14
#26 - powertomato / @powertomato

07/03/2013 at 11:17PM

14
#27 - Norm Fasey / @DeathRay1977

07/04/2013 at 11:29PM

14
#28 - Thiago Alves / @townk

07/05/2013 at 06:18AM

14
#29 - Tom Cammann / @tea_sea

07/05/2013 at 01:32PM

14
#30 - Andrew Noyes / @seyonwerdna

07/06/2013 at 07:46AM