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

3555 active golfers, 11430 entries

Leaderboard (lowest score wins):
19
#2761 - dest royer / @ddddestroyerrrr

05/04/2015 at 02:16AM

19
#2762 - Slurpie Chapdash / @SlurpieChapdash

05/04/2015 at 03:13PM

19
#2763 - Tom / @BureaucratGr11

05/27/2015 at 08:20PM

19
#2764 - Stewart Davies / @stewa_rtdavi_es

07/16/2015 at 01:41PM

19
#2765 - vimgolf / @myspare307

07/17/2015 at 08:20PM

19
#2766 - Test / @goodbyetest1248

07/24/2015 at 03:43PM

19
#2767 - Restroom Sounds / @RestroomSounds

08/26/2015 at 03:35AM

19
#2768 - Slavisa Djukic / @ssdjuka

09/21/2015 at 09:55PM

19
#2769 - No Holiness / @NoHoliness

10/01/2015 at 08:18PM

19
#2770 - Sean Hill / @insecteanSean

10/09/2015 at 03:14AM

19
#2771 - Roger / @enjoyheyo

10/20/2015 at 04:21PM

19
#2772 - Stefan Larsson / @Objektiv

11/25/2015 at 04:46PM

19
#2773 - rantelo / @rantelo7

12/02/2015 at 06:54PM

19
#2774 - Razzi / @Razzzzi

12/20/2015 at 09:09PM

19
#2775 - Michael / @Michael57309129

12/30/2015 at 10:10PM

19
#2776 - fuck GFW / @ravishGFW

01/06/2016 at 04:42AM

19
#2777 - Lexi Ross / @lexiberylross

01/30/2016 at 02:17AM

19
#2778 - Victor Gaudard / @gaudardv

02/02/2016 at 05:28PM

19
#2779 - Michael Buckley / @apolatg

02/11/2016 at 02:16AM

19
#2780 - Mister Knister / @vimgolf_ctrl_x

03/07/2016 at 07:51AM

19
#2781 - Jason Pleau / @JasonPleau

05/05/2016 at 01:09AM

19
#2782 - Reuben Huxley / @missiontocode

06/29/2016 at 05:36AM

19
#2783 - EvLSnoopY / @EvLSnoopY

07/25/2016 at 03:01AM

19
#2784 - Daniel Teal / @coelestinian

08/30/2016 at 06:59PM

19
#2785 - René De Alvarado / @renedealvarado

09/28/2016 at 10:59AM

19
#2786 - Henrik Nyman / @NymanHenrik

09/30/2016 at 06:07PM

19
#2787 - Justin Smalkowski / @jdssmallz

10/27/2016 at 05:19PM

19
#2788 - holy_sin / @0zero0

12/09/2016 at 08:31AM

19
#2789 - Eric Bakan / @ericbakan

03/14/2017 at 09:55PM

19
#2790 - Mitchell / @Spitchell

03/15/2017 at 11:42PM