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

3272 active golfers, 10474 entries

Leaderboard (lowest score wins):
40
#3241 - Volafile.io / @volafile

12/20/2013 at 03:36PM

40
#3242 - bluehat / @b1u3h4t

09/17/2014 at 04:03PM

40
#3243 - Jean Carlo Machado / @JeanCarloMachad

06/04/2015 at 05:48PM

41
#3244 - Webdeveloper⭐⭐ / @refschool

11/09/2018 at 08:27PM

42
#3245 - Eric Kelly / @HeroicEric

06/12/2013 at 07:52PM

42
#3246 - icecreambeard / @IceCreamBeard

11/07/2014 at 08:35AM

43
#3247 - Михайлов Борис / @kagux

02/24/2014 at 09:59AM

43
#3248 - Maciej Nowak / @maciejt_nowak

04/20/2014 at 05:35PM

44
#3249 - Kwak / @Kwak35380772

06/29/2018 at 08:03AM

45
#3250 - 함근상 / @tEkfiAoKJdn11hT

06/29/2018 at 08:40AM

46
#3251 - Kevin Ilphrin Pellet / @Kilphrin

04/09/2015 at 04:27PM

47
#3252 - Sean Dokko / @seandokko

02/03/2014 at 05:48PM

47
#3253 - Alejandro Alemán / @alemanramos

04/06/2014 at 11:07AM

48
#3254 - 黄锦 / @hujin1860

12/21/2014 at 04:43PM

50
#3255 - Zhao Bin / @ZhaoBin2

06/08/2016 at 03:07PM

53
#3256 - Prody / @Prody225

11/12/2013 at 05:27PM

59
#3257 - Matthew D. Huff / @theinfamoushuff

05/27/2015 at 04:19PM

59
#3258 - Briana Baker / @brianacodes

12/21/2018 at 09:19PM

60
#3259 - BatAmar Battulga / @b_batamar

08/17/2013 at 09:42AM

65
#3260 - Mohit Sharma / @m0hitsharma

12/29/2013 at 09:49PM

65
#3261 - Sean Culver / @seanculver

03/08/2014 at 12:48AM

65
#3262 - Alexander Berezovsky / @_a0b_

08/08/2014 at 11:43PM

76
#3263 - nouh / @nouh

09/12/2013 at 01:47PM

76
#3264 - James Pickard / @jickles

01/28/2014 at 07:24PM

76
#3265 - Fionnán Alt / @FionnanAlt

12/12/2018 at 03:01PM

81
#3266 - bo-yu huang / @good5dog5

11/11/2014 at 08:18AM

90
#3267 - mathac / @mathacgolf

05/04/2014 at 08:39AM

92
#3268 - modestas / @modstan

05/20/2013 at 05:45PM

92
#3269 - olopost / @olopost

08/19/2014 at 07:58PM

105
#3270 - Nelson Guerrero / @gnoslen

04/18/2014 at 12:22PM