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

3904 active golfers, 12678 entries

Leaderboard (lowest score wins):
24
#3661 - Vladimir Leskov / @vladimirlesk

12/21/2015 at 08:41PM

24
#3662 - Max Del Giudice / @max_forest

04/18/2016 at 07:54AM

24
#3663 - drumstix576 / @drumstix576

05/11/2016 at 03:05AM

24
#3664 - arun mukundan / @manyids2

03/22/2017 at 01:23PM

24
#3665 - MrMatuski / @MrMatuski

03/28/2018 at 05:24PM

24
#3666 - Danya Smith / @danyadsmith

08/01/2018 at 03:31AM

24
#3667 - Alexander Covington / @ACov96

08/30/2018 at 05:53PM

24
#3668 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

10/19/2018 at 02:44AM

24
#3669 - urandom / @ttyrandom

10/21/2018 at 06:35AM

24
#3670 - Shashank G Hegde / @shashankghegde

10/23/2018 at 04:19PM

24
#3671 - vimgolfer1234 / @vimgolfer12342

10/25/2018 at 12:42AM

24
#3672 - Oren Koriat / @KoriatOren

12/05/2018 at 07:23PM

24
#3673 - Bumazhka / @Bumazhka

02/11/2019 at 08:20AM

24
#3674 - Elias Daler / @EliasDaler

03/12/2019 at 03:25PM

24
#3675 - brian koh / @kxmbrian

03/26/2019 at 12:31AM

24
#3676 - Noah Epstein / @NoahJEpstein

04/11/2019 at 02:49PM

24
#3677 - Jess / @Jess74311450

06/13/2019 at 03:04PM

24
#3678 - Vim Golfer / @VimGolfer6

07/14/2019 at 02:57PM

24
#3679 - Andy Gnias / @GniTheSciGuy

11/28/2019 at 12:10AM

24
#3680 - Sjoerd Thijsse / @SjoerdThijsse

12/23/2019 at 11:16PM

24
#3681 - David Cherednik / @david_cherednik

05/23/2020 at 12:23PM

24
#3682 - Jacob Shomstein / @jshoms

06/23/2020 at 01:50AM

24
#3683 - Anil Narayan / @AnilNarayan2013

07/23/2020 at 03:30AM

24
#3684 - Rustem B. / @_rustemb

07/31/2020 at 11:52AM

24
#3685 - 伟哥 / @w15659018558

10/02/2020 at 02:39PM

24
#3686 - Samuel Lewi H / @slh_samuel

11/08/2020 at 04:19PM

24
#3687 - said / @said13664960

12/15/2020 at 10:22PM

25
#3688 - Ben Friedland / @bfriedland174

07/03/2013 at 05:42PM

25
#3689 - Vincent Lee / @vincentleest

07/08/2013 at 06:25AM

25
#3690 - Dan Harrington / @Dan1H1

07/26/2013 at 01:49AM