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

3919 active golfers, 12736 entries

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

12/27/2018 at 10:36PM

14
#932 - antoine mas / @aneomas

01/05/2019 at 09:10PM

14
#933 - Hawk Newton / @hawknewton

01/11/2019 at 06:11AM

14
#934 - Vildu / @Vildu3

01/16/2019 at 02:17PM

14
#935 - Narwaro / @Narwaro

01/31/2019 at 08:49AM

14
#936 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:55PM

14
#937 - Ng Sek Long / @NgSekLong

02/09/2019 at 03:19PM

14
#938 - XenoRiS / @XenoRiS1

02/16/2019 at 04:09PM

14
#939 - Sam Miller / @sam_miller93

02/18/2019 at 11:55AM

14
#940 - sloppypapi / @sloppypapi5

02/20/2019 at 02:48PM

14
#941 - Ι™arth simulator / @eidoloncity

02/28/2019 at 03:22PM

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

03/02/2019 at 03:32AM

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

03/04/2019 at 02:00PM

14
#944 - severij / @severij_

03/05/2019 at 12:41AM

14
#945 - vince / @vincentvangott

03/06/2019 at 09:24PM

14
#946 - Tobi R / @indyfree4711

03/07/2019 at 02:22PM

14
#947 - Anthony Catterwell / @ACatterwell

03/09/2019 at 02:48AM

14
#948 - Parsa Amini / @ParsaAmini

03/19/2019 at 06:04PM

14
#949 - zh0ng / @zh00ng

03/20/2019 at 12:01PM

14
#950 - James Perry Hartman / @JauntyJPH

03/20/2019 at 05:34PM

14
#951 - serent / @serent

03/21/2019 at 04:17PM

14
#952 - k24w24 / @k24w24

03/21/2019 at 06:54PM

14
#953 - . / @fislaqq

03/31/2019 at 12:59AM

14
#954 - Dryvnt / @Dryvnt

04/04/2019 at 12:57PM

14
#955 - alekfed / @alek_fed

04/14/2019 at 07:38PM

14
#956 - Olle NordesjΓΆ / @Rasinj

04/20/2019 at 11:07PM

14
#957 - Gitsnik / @dracyrys

04/21/2019 at 12:14PM

14
#958 - Skywalker 666 / @MemeMasterXXI

04/23/2019 at 06:37PM

14
#959 - Grant / @grant_7788

04/26/2019 at 03:08PM

14
#960 - Kai.Li / @KaiLi19

04/28/2019 at 07:05AM