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

3599 active golfers, 11597 entries

Leaderboard (lowest score wins):
20
#2971 - Chris Snyder / @crsWorldCitizen

04/14/2017 at 08:32PM

20
#2972 - Elliott Mantock / @elGatoMantocko

04/30/2017 at 07:33PM

20
#2973 - Eric Bock / @ericbock

05/01/2017 at 06:26PM

20
#2974 - Jenny Johnson / @Kippz07

05/08/2017 at 04:02PM

20
#2975 - chu zui / @chuzui7

05/16/2017 at 12:52AM

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

05/22/2017 at 05:39AM

20
#2977 - Nathan Slaughter / @NjSlaughter

05/24/2017 at 05:14AM

20
#2978 - David / @Revan4Vendetta

06/05/2017 at 02:03PM

20
#2979 - Will Gunther / @WillGunther

06/11/2017 at 07:25PM

20
#2980 - Ezra Zigmond / @ezrazig

06/22/2017 at 07:37PM

20
#2981 - Brandon Height / @Lask0x

08/08/2017 at 01:28AM

20
#2982 - Mike Grimes / @magrimes

09/07/2017 at 09:49PM

20
#2983 - Elton Kamami / @pixel_grid

10/07/2017 at 10:55PM

20
#2984 - Richard / @rpmerry

10/09/2017 at 10:58PM

20
#2985 - Anton Popov / @agraver

10/10/2017 at 07:44PM

20
#2986 - かりうむ / @ka1l

11/19/2017 at 12:38PM

20
#2987 - Chasetopher / @chasetopherlee

11/26/2017 at 12:04AM

20
#2988 - flykule / @flykule

12/18/2017 at 02:46AM

20
#2989 - maks kamnikar / @maks_kamnikar

01/07/2018 at 10:57PM

20
#2990 - Yousef Mohamed / @MohamedYoyo94

02/23/2018 at 09:50AM

20
#2991 - gerry / @ggaonag

04/02/2018 at 06:38PM

20
#2992 - 서강훈 / @shirano150

04/03/2018 at 01:00AM

20
#2993 - Mohideen Imran Khan / @miknotes

04/12/2018 at 10:00AM

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

05/03/2018 at 04:11PM

20
#2995 - tue2truong / @tue2truong1

05/25/2018 at 11:56PM

20
#2996 - Boda / @Boda47528108

06/04/2018 at 12:44PM

20
#2997 - 권순재 / @FhOrZyV4MhUNXQx

06/23/2018 at 02:55AM

20
#2998 - 박주영 / @xhgnVrQ6uUJOTnB

06/29/2018 at 08:17AM

20
#2999 - eL Bunda / @elbund4

07/01/2018 at 01:32PM

20
#3000 - 无眠的夜狐狸 / @fox_ni

08/16/2018 at 01:44PM