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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
14
#841 - Chris Kirkland / @numbahs

11/12/2017 at 03:16AM

14
#842 - Ad Infinitum / @Ad_Inifinitum

11/13/2017 at 07:20PM

14
#843 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 08:40PM

14
#844 - oops / @oopserror404

11/15/2017 at 04:10PM

14
#845 - Camillott Games / @camillottgames

11/18/2017 at 12:10AM

14
#846 - Wayne / @lilwayne15561

11/28/2017 at 07:08PM

14
#847 - daikiOka / @OdsOka

12/02/2017 at 01:24PM

14
#848 - Pereant osores / @viniciusxp

12/05/2017 at 12:17PM

14
#849 - Eric Liao / @rcliaodev

12/06/2017 at 07:38AM

14
#850 - Joachim Wedin / @joachim_wedin

12/08/2017 at 12:27PM

14
#851 - Edward / @GLineEdward

12/24/2017 at 06:11AM

14
#852 - Alphonse Mariya / @alfunx

01/08/2018 at 06:29PM

14
#853 - ParasamGateZero / @ParasamGateZero

01/13/2018 at 07:12AM

14
#854 - Matthew Rademaker / @radamakar

01/24/2018 at 02:11AM

14
#855 - Dominic Z / @thammaaa

01/25/2018 at 09:43AM

14
#856 - bocadillodeatun / @bocadillodeatun

01/28/2018 at 11:00AM

14
#857 - thadeuszlay / @thadeuszlay

01/28/2018 at 10:34PM

14
#858 - John C Shea / @MHSSachems

01/28/2018 at 10:46PM

14
#859 - Herz3h / @Herz3h

02/06/2018 at 10:27PM

14
#860 - Alvaro / @VaroClemente

02/18/2018 at 10:20PM

14
#861 - Roger Zurawicki / @zurawiki

02/21/2018 at 05:11AM

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

02/22/2018 at 09:49AM

14
#863 - elsie / @elsie06177256

02/22/2018 at 11:10AM

14
#864 - bruno / @LokoPoggi

02/23/2018 at 12:29AM

14
#865 - Guirec CORBEL / @GuirecCorbel

02/25/2018 at 11:59PM

14
#866 - GreenPinguin / @GreenPinguin2

03/07/2018 at 04:41PM

14
#867 - ナイト / @ndknight

03/11/2018 at 09:09AM

14
#868 - Steven Petsche / @StevenPetsche

03/11/2018 at 09:18AM

14
#869 - Chris Sutton / @cs1379320

03/12/2018 at 02:54AM

14
#870 - Jacky / @MrBearPan

03/12/2018 at 10:44PM