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

3533 active golfers, 11363 entries

Leaderboard (lowest score wins):
20
#2911 - alkozu / @alkozu

11/30/2016 at 08:05AM

20
#2912 - Christian Guenter / @chris_guenter

12/18/2016 at 07:32PM

20
#2913 - Ymte Jan Broekhuizen / @ymtejan

02/02/2017 at 10:44AM

20
#2914 - 박명호 / @cruck103

02/24/2017 at 12:21PM

20
#2915 - camden bickel / @camdenbickel

02/28/2017 at 05:02PM

20
#2916 - Nick / @NickRaleighWoop

03/16/2017 at 02:59AM

20
#2917 - Chris Snyder / @crsWorldCitizen

04/14/2017 at 08:32PM

20
#2918 - Elliott Mantock / @elGatoMantocko

04/30/2017 at 07:33PM

20
#2919 - Eric Bock / @ericbock

05/01/2017 at 06:26PM

20
#2920 - Jenny Johnson / @Kippz07

05/08/2017 at 04:02PM

20
#2921 - chu zui / @chuzui7

05/16/2017 at 12:52AM

20
#2922 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

05/22/2017 at 05:39AM

20
#2923 - Nathan Slaughter / @NjSlaughter

05/24/2017 at 05:14AM

20
#2924 - David / @Revan4Vendetta

06/05/2017 at 02:03PM

20
#2925 - Will Gunther / @WillGunther

06/11/2017 at 07:25PM

20
#2926 - Ezra Zigmond / @ezrazig

06/22/2017 at 07:37PM

20
#2927 - Brandon Height / @Lask0x

08/08/2017 at 01:28AM

20
#2928 - Mike Grimes / @magrimes

09/07/2017 at 09:49PM

20
#2929 - Elton Kamami / @pixel_grid

10/07/2017 at 10:55PM

20
#2930 - Richard / @rpmerry

10/09/2017 at 10:58PM

20
#2931 - Anton Popov / @agraver

10/10/2017 at 07:44PM

20
#2932 - かりうむ / @ka1l

11/19/2017 at 12:38PM

20
#2933 - Chasetopher / @chasetopherlee

11/26/2017 at 12:04AM

20
#2934 - flykule / @flykule

12/18/2017 at 02:46AM

20
#2935 - maks kamnikar / @maks_kamnikar

01/07/2018 at 10:57PM

20
#2936 - Yousef Mohamed / @MohamedYoyo94

02/23/2018 at 09:50AM

20
#2937 - gerry / @ggaonag

04/02/2018 at 06:38PM

20
#2938 - 서강훈 / @shirano150

04/03/2018 at 01:00AM

20
#2939 - Mohideen Imran Khan / @miknotes

04/12/2018 at 10:00AM

20
#2940 - Héctor Ramón / @hecrj

05/03/2018 at 04:11PM