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):
45
#3511 - 함근상 / @tEkfiAoKJdn11hT

06/29/2018 at 08:40AM

46
#3512 - Kevin Ilphrin Pellet / @Kilphrin

04/09/2015 at 04:27PM

47
#3513 - Sean Dokko / @seandokko

02/03/2014 at 05:48PM

47
#3514 - Alejandro Alemán / @alemanramos

04/06/2014 at 11:07AM

48
#3515 - 黄锦 / @hujin1860

12/21/2014 at 04:43PM

50
#3516 - Zhao Bin / @ZhaoBin2

06/08/2016 at 03:07PM

53
#3517 - Prody / @Prody225

11/12/2013 at 05:27PM

59
#3518 - Matthew D. Huff / @theinfamoushuff

05/27/2015 at 04:19PM

59
#3519 - Briana Baker / @brianacodes

12/21/2018 at 09:19PM

60
#3520 - BatAmar Battulga / @b_batamar

08/17/2013 at 09:42AM

65
#3521 - Mohit Sharma / @m0hitsharma

12/29/2013 at 09:49PM

65
#3522 - Sean Culver / @seanculver

03/08/2014 at 12:48AM

65
#3523 - Alexander Berezovsky / @_a0b_

08/08/2014 at 11:43PM

76
#3524 - nouh / @nouh

09/12/2013 at 01:47PM

76
#3525 - James Pickard / @jickles

01/28/2014 at 07:24PM

76
#3526 - Fionnán Alt / @FionnanAlt

12/12/2018 at 03:01PM

81
#3527 - bo-yu huang / @good5dog5

11/11/2014 at 08:18AM

90
#3528 - mathac / @mathacgolf

05/04/2014 at 08:39AM

92
#3529 - modestas / @modstan

05/20/2013 at 05:45PM

92
#3530 - olopost / @olopost

08/19/2014 at 07:58PM

105
#3531 - Nelson Guerrero / @gnoslen

04/18/2014 at 12:22PM

109
#3532 - _xavo / @__xavo

03/01/2016 at 02:46AM

155
#3533 - velina v veleva / @vveleva

04/23/2015 at 04:55PM