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

3905 active golfers, 12682 entries

Leaderboard (lowest score wins):
14
#931 - Narwaro / @Narwaro

01/31/2019 at 08:49AM

14
#932 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:55PM

14
#933 - Ng Sek Long / @NgSekLong

02/09/2019 at 03:19PM

14
#934 - XenoRiS / @XenoRiS1

02/16/2019 at 04:09PM

14
#935 - Sam Miller / @sam_miller93

02/18/2019 at 11:55AM

14
#936 - sloppypapi / @sloppypapi5

02/20/2019 at 02:48PM

14
#937 - Ι™arth simulator / @eidoloncity

02/28/2019 at 03:22PM

14
#938 - πšƒπš’πšπš˜πšžπšŠπš— πšƒπšŽπš’πšœπšœπš’πšŽπš› / @TitouanT_

03/02/2019 at 03:32AM

14
#939 - JoΓ£o Silva / @joaosilva155

03/04/2019 at 02:00PM

14
#940 - severij / @severij_

03/05/2019 at 12:41AM

14
#941 - vince / @vincentvangott

03/06/2019 at 09:24PM

14
#942 - Tobi R / @indyfree4711

03/07/2019 at 02:22PM

14
#943 - Anthony Catterwell / @ACatterwell

03/09/2019 at 02:48AM

14
#944 - Parsa Amini / @ParsaAmini

03/19/2019 at 06:04PM

14
#945 - zh0ng / @zh00ng

03/20/2019 at 12:01PM

14
#946 - James Perry Hartman / @JauntyJPH

03/20/2019 at 05:34PM

14
#947 - serent / @serent

03/21/2019 at 04:17PM

14
#948 - k24w24 / @k24w24

03/21/2019 at 06:54PM

14
#949 - . / @fislaqq

03/31/2019 at 12:59AM

14
#950 - Dryvnt / @Dryvnt

04/04/2019 at 12:57PM

14
#951 - alekfed / @alek_fed

04/14/2019 at 07:38PM

14
#952 - Olle NordesjΓΆ / @Rasinj

04/20/2019 at 11:07PM

14
#953 - Gitsnik / @dracyrys

04/21/2019 at 12:14PM

14
#954 - Skywalker 666 / @MemeMasterXXI

04/23/2019 at 06:37PM

14
#955 - Grant / @grant_7788

04/26/2019 at 03:08PM

14
#956 - Kai.Li / @KaiLi19

04/28/2019 at 07:05AM

14
#957 - ImaNotgate / @INotgate

04/28/2019 at 10:45PM

14
#958 - Juan R Leon / @JuanRLeon1

04/29/2019 at 03:17PM

14
#959 - ow / @ow34480012

04/30/2019 at 09:05PM

14
#960 - κΉ€ν˜„μˆ˜ / @flyhigh43

05/01/2019 at 07:21AM