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
#841 - oops / @oopserror404

11/15/2017 at 04:10PM

14
#842 - Camillott Games / @camillottgames

11/18/2017 at 12:10AM

14
#843 - Wayne / @lilwayne15561

11/28/2017 at 07:08PM

14
#844 - daikiOka / @OdsOka

12/02/2017 at 01:24PM

14
#845 - Pereant osores / @viniciusxp

12/05/2017 at 12:17PM

14
#846 - Eric Liao / @rcliaodev

12/06/2017 at 07:38AM

14
#847 - Joachim Wedin / @joachim_wedin

12/08/2017 at 12:27PM

14
#848 - Edward / @GLineEdward

12/24/2017 at 06:11AM

14
#849 - Alphonse Mariya / @alfunx

01/08/2018 at 06:29PM

14
#850 - ParasamGateZero / @ParasamGateZero

01/13/2018 at 07:12AM

14
#851 - Matthew Rademaker / @radamakar

01/24/2018 at 02:11AM

14
#852 - Dominic Z / @thammaaa

01/25/2018 at 09:43AM

14
#853 - bocadillodeatun / @bocadillodeatun

01/28/2018 at 11:00AM

14
#854 - thadeuszlay / @thadeuszlay

01/28/2018 at 10:34PM

14
#855 - John C Shea / @MHSSachems

01/28/2018 at 10:46PM

14
#856 - Herz3h / @Herz3h

02/06/2018 at 10:27PM

14
#857 - Alvaro / @VaroClemente

02/18/2018 at 10:20PM

14
#858 - Roger Zurawicki / @zurawiki

02/21/2018 at 05:11AM

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

02/22/2018 at 09:49AM

14
#860 - elsie / @elsie06177256

02/22/2018 at 11:10AM

14
#861 - bruno / @LokoPoggi

02/23/2018 at 12:29AM

14
#862 - Guirec CORBEL / @GuirecCorbel

02/25/2018 at 11:59PM

14
#863 - GreenPinguin / @GreenPinguin2

03/07/2018 at 04:41PM

14
#864 - ナイト / @ndknight

03/11/2018 at 09:09AM

14
#865 - Steven Petsche / @StevenPetsche

03/11/2018 at 09:18AM

14
#866 - Chris Sutton / @cs1379320

03/12/2018 at 02:54AM

14
#867 - Jacky / @MrBearPan

03/12/2018 at 10:44PM

14
#868 - Alec Goebel / @bewarethegrue

03/23/2018 at 08:37PM

14
#869 - towc / @MateiCopot

03/29/2018 at 07:01AM

14
#870 - vimthrowaway / @vimgolf_throw

03/29/2018 at 09:20AM