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
#2851 - Artur Bekasov / @arturbekasov

02/05/2014 at 12:53PM

20
#2852 - Евгений Петров / @blinunleius

02/15/2014 at 08:24AM

20
#2853 - barnabaguy / @barnabaguy

02/16/2014 at 11:58PM

20
#2854 - Dave Derderian / @funayman

03/06/2014 at 07:18PM

20
#2855 - Nicholas Land / @LandsPlanet

03/06/2014 at 09:26PM

20
#2856 - kAworu / @only4vimgolf

03/12/2014 at 11:34AM

20
#2857 - André Peric Tavares / @AndrePeric

04/19/2014 at 03:14PM

20
#2858 - Robert Himmelmann / @himmelmr

04/25/2014 at 12:57PM

20
#2859 - debris / @iDebris5

05/18/2014 at 03:28PM

20
#2860 - jhvaras / @jhvaras

05/31/2014 at 07:44PM

20
#2861 - Jay Phillips / @rocketman8473

06/23/2014 at 11:10PM

20
#2862 - Francisco García / @SystematicFrank

06/24/2014 at 01:17PM

20
#2863 - André Branco / @avbranco

06/30/2014 at 03:34PM

20
#2864 - liz monfett / @lizmonfett

07/03/2014 at 05:09AM

20
#2865 - iamevn / @iamevn

07/08/2014 at 04:10PM

20
#2866 - Jaakko Hannikainen / @jgke_

07/17/2014 at 01:49PM

20
#2867 - Dominik Szerszeń / @DominikSze

07/22/2014 at 02:16PM

20
#2868 - Kai Howelmeyer / @kaihowl

08/10/2014 at 04:41PM

20
#2869 - Daniel Mita / @Mienaikage

09/02/2014 at 09:59AM

20
#2870 - Mattias Fransson / @azzidoos

09/08/2014 at 02:55PM

20
#2871 - Noah Ruderman / @noahc66260

09/27/2014 at 07:59AM

20
#2872 - Korn Acker / @ThKornacker

10/03/2014 at 03:59AM

20
#2873 - R / @7vies

10/21/2014 at 03:53AM

20
#2874 - F Prades Illanes / @fprades

10/22/2014 at 11:06AM

20
#2875 - Avia Aharon / @aviaron

10/31/2014 at 03:01PM

20
#2876 - Shane Logsdon / @shanelogsdon

11/07/2014 at 06:16AM

20
#2877 - Edmundo Perez / @ingedmundo

12/03/2014 at 03:25AM

20
#2878 - Jordan Alexander / @HappppyPerson

12/24/2014 at 06:36PM

20
#2879 - Simon Mölzer / @h0wser

01/19/2015 at 08:12AM

20
#2880 - Christian Prehl / @prehlDE

01/19/2015 at 12:40PM