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

3371 active golfers, 10831 entries

Leaderboard (lowest score wins):
65
#3361 - Alexander Berezovsky / @_a0b_

08/08/2014 at 11:43PM

76
#3362 - nouh / @nouh

09/12/2013 at 01:47PM

76
#3363 - James Pickard / @jickles

01/28/2014 at 07:24PM

76
#3364 - Fionnán Alt / @FionnanAlt

12/12/2018 at 03:01PM

81
#3365 - bo-yu huang / @good5dog5

11/11/2014 at 08:18AM

90
#3366 - mathac / @mathacgolf

05/04/2014 at 08:39AM

92
#3367 - modestas / @modstan

05/20/2013 at 05:45PM

92
#3368 - olopost / @olopost

08/19/2014 at 07:58PM

105
#3369 - Nelson Guerrero / @gnoslen

04/18/2014 at 12:22PM

109
#3370 - _xavo / @__xavo

03/01/2016 at 02:46AM

155
#3371 - velina v veleva / @vveleva

04/23/2015 at 04:55PM