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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
14
#931 - Sam Kim / @samkimhis

10/14/2018 at 01:02AM

14
#932 - Alejandro Santander / @_ajsantander

10/14/2018 at 12:48PM

14
#933 - Dax / @daaawx

10/16/2018 at 04:01PM

14
#934 - ForVimGolfReally / @VimFor

11/09/2018 at 12:05AM

14
#935 - Parker Couch / @couch_parker

11/12/2018 at 05:54PM

14
#936 - Andreas Nordahl / @andreasnordahl

11/14/2018 at 05:08PM

14
#937 - name / @name65894813

11/14/2018 at 06:36PM

14
#938 - zaperrer / @zaperrer

11/17/2018 at 12:51AM

14
#939 - Bruno Cunha / @bruncun

11/18/2018 at 01:53PM

14
#940 - Michael Rose / @mdroseDev

11/23/2018 at 06:43AM

14
#941 - Jonathan Cabezas / @John_Harkan

11/27/2018 at 09:37AM

14
#942 - CptBong / @cpt1bong

11/30/2018 at 12:35AM

14
#943 - Artur MrΓ³z / @MrozArtur

12/06/2018 at 10:07AM

14
#944 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 06:21AM

14
#945 - ThΓ©o / @Theodnls

12/17/2018 at 02:56PM

14
#946 - xwlearn / @ixw1991

12/26/2018 at 03:57PM

14
#947 - MEschenbacher / @eschenbacher_m

12/27/2018 at 09:09PM

14
#948 - Andrea / @AndreaRguezFdez

12/27/2018 at 10:36PM

14
#949 - antoine mas / @aneomas

01/05/2019 at 09:10PM

14
#950 - Hawk Newton / @hawknewton

01/11/2019 at 06:11AM

14
#951 - Vildu / @Vildu3

01/16/2019 at 02:17PM

14
#952 - Narwaro / @Narwaro

01/31/2019 at 08:49AM

14
#953 - Shahin Mohammad Sali / @shaahiinms

02/05/2019 at 10:55PM

14
#954 - Ng Sek Long / @NgSekLong

02/09/2019 at 03:19PM

14
#955 - XenoRiS / @XenoRiS1

02/16/2019 at 04:09PM

14
#956 - Sam Miller / @sam_miller93

02/18/2019 at 11:55AM

14
#957 - sloppypapi / @sloppypapi5

02/20/2019 at 02:48PM

14
#958 - Ι™arth simulator / @eidoloncity

02/28/2019 at 03:22PM

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

03/02/2019 at 03:32AM

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

03/04/2019 at 02:00PM