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

3533 active golfers, 11363 entries

Leaderboard (lowest score wins):
20
#2881 - Steven Loria / @sloria1

02/14/2015 at 04:03PM

20
#2882 - Yannic Haupenthal / @yhaupenthal

03/01/2015 at 10:35AM

20
#2883 - Georgi Georgiev / @GeorgievGeorgeS

03/19/2015 at 05:06PM

20
#2884 - Philippe Voinov / @tehwalris

05/21/2015 at 09:30AM

20
#2885 - Ghoot Emaho / @GhootEmaho

05/31/2015 at 03:30PM

20
#2886 - Magnus Stavngaard / @bus3450

06/01/2015 at 05:55PM

20
#2887 - Collin Buchan / @CollinBuchan

06/26/2015 at 06:16AM

20
#2888 - Endre Galaczi / @galacziendre

08/03/2015 at 03:47PM

20
#2889 - Mart T / @xtimmu

08/31/2015 at 06:58PM

20
#2890 - Sebastian D. / @SebastianD__

10/05/2015 at 12:26PM

20
#2891 - Conor Ryan / @conorjryan

11/05/2015 at 08:41AM

20
#2892 - Tomás Pérez / @tomasperezv

11/08/2015 at 08:20PM

20
#2893 - Robert Perce / @robertperce

11/13/2015 at 04:27PM

20
#2894 - adrien frediani / @fredianiadrien

12/13/2015 at 08:55PM

20
#2895 - andrei / @CebotariAndrei

01/02/2016 at 09:48PM

20
#2896 - 戸田 薫 / @KaoruToda

01/10/2016 at 04:47AM

20
#2897 - Lucas McDaniel / @Ldmcdaniel109

01/21/2016 at 09:53PM

20
#2898 - Raymond Cox / @RaymondCox

02/13/2016 at 03:24PM

20
#2899 - Kayne West / @portal_narlish

02/25/2016 at 07:13AM

20
#2900 - Feras / @faldah

04/24/2016 at 03:44AM

20
#2901 - Mitch LeBlanc / @symmitchry

05/11/2016 at 12:04AM

20
#2902 - Alexandre Lion / @lnalx

06/06/2016 at 11:52AM

20
#2903 - Yi Yan / @_IanTay

07/05/2016 at 07:40PM

20
#2904 - chrisdrappier / @chrisdrappier

07/13/2016 at 09:19PM

20
#2905 - Allen Gooch / @mojochao

10/20/2016 at 10:31PM

20
#2906 - RAM13 / @cbcvbcxvbcxvb

10/27/2016 at 03:50PM

20
#2907 - Joseph Simone / @averagejoey2000

11/01/2016 at 05:23AM

20
#2908 - Oskar Norman / @Norman0

11/26/2016 at 03:34PM

20
#2909 - Apox / @apox159

11/26/2016 at 04:49PM

20
#2910 - somevimgolfer / @somevimgolfer

11/27/2016 at 05:10PM