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

3903 active golfers, 12677 entries

Leaderboard (lowest score wins):
14
#811 - Anthony Shivers / @_AnthonyShivers

10/24/2017 at 03:07PM

14
#812 - mkl / @Hnr1zklc

10/27/2017 at 10:39AM

14
#813 - MathijsHoogland / @MathijsHoogland

11/02/2017 at 08:48PM

14
#814 - vimgolfer / @vimgolfinger

11/06/2017 at 12:58PM

14
#815 - Turkey Man / @lvturkeyman

11/07/2017 at 04:47PM

14
#816 - Juuso Valkeejärvi / @jussovalk

11/10/2017 at 08:18PM

14
#817 - Chris Kirkland / @numbahs

11/12/2017 at 03:16AM

14
#818 - Ad Infinitum / @Ad_Inifinitum

11/13/2017 at 07:20PM

14
#819 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 08:40PM

14
#820 - oops / @oopserror404

11/15/2017 at 04:10PM

14
#821 - Camillott Games / @camillottgames

11/18/2017 at 12:10AM

14
#822 - Wayne / @lilwayne15561

11/28/2017 at 07:08PM

14
#823 - daikiOka / @OdsOka

12/02/2017 at 01:24PM

14
#824 - Pereant osores / @viniciusxp

12/05/2017 at 12:17PM

14
#825 - Eric Liao / @rcliaodev

12/06/2017 at 07:38AM

14
#826 - Joachim Wedin / @joachim_wedin

12/08/2017 at 12:27PM

14
#827 - Edward / @GLineEdward

12/24/2017 at 06:11AM

14
#828 - Alphonse Mariya / @alfunx

01/08/2018 at 06:29PM

14
#829 - ParasamGateZero / @ParasamGateZero

01/13/2018 at 07:12AM

14
#830 - Matthew Rademaker / @radamakar

01/24/2018 at 02:11AM

14
#831 - Dominic Z / @thammaaa

01/25/2018 at 09:43AM

14
#832 - bocadillodeatun / @bocadillodeatun

01/28/2018 at 11:00AM

14
#833 - thadeuszlay / @thadeuszlay

01/28/2018 at 10:34PM

14
#834 - John C Shea / @MHSSachems

01/28/2018 at 10:46PM

14
#835 - Herz3h / @Herz3h

02/06/2018 at 10:27PM

14
#836 - Alvaro / @VaroClemente

02/18/2018 at 10:20PM

14
#837 - Roger Zurawicki / @zurawiki

02/21/2018 at 05:11AM

14
#838 - z1505804@mvrht.net / @z150580

02/22/2018 at 09:49AM

14
#839 - elsie / @elsie06177256

02/22/2018 at 11:10AM

14
#840 - bruno / @LokoPoggi

02/23/2018 at 12:29AM