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):
26
#3391 - Johannes Rubenz / @j_rubenz

11/06/2014 at 03:26PM

26
#3392 - manish mishra / @manishrdmishra

01/12/2015 at 11:45PM

26
#3393 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:25PM

26
#3394 - Edgard Leal / @EdgardLeal

05/25/2016 at 02:01PM

26
#3395 - John Wilson / @Login4anonymity

10/06/2016 at 05:31AM

26
#3396 - Wiktor Jeziorski / @WiktorJeziorsk1

08/18/2017 at 09:46PM

26
#3397 - Pingtermasmoo / @pingtermasmoo

09/13/2018 at 07:55AM

26
#3398 - KöşeKafa / @kuarkonyum

09/28/2018 at 04:50PM

26
#3399 - Jonny Wilson / @thejondom

12/21/2018 at 09:27PM

26
#3400 - virus / @fishmobius

04/18/2019 at 04:05PM

26
#3401 - benco / @itsmebenco

05/31/2019 at 09:28AM

26
#3402 - huynhminhchu / @huynhminhchu

09/22/2019 at 10:53AM

27
#3403 - codegourmet / @codegourmet

10/01/2013 at 11:37AM

27
#3404 - Flops / @flops_dev

10/01/2013 at 06:52PM

27
#3405 - clemens / @clemens

10/27/2013 at 05:15PM

27
#3406 - Aaron Held / @iamaaronheld

12/15/2013 at 05:24PM

27
#3407 - Shaun Robinson / @env

02/11/2014 at 02:25AM

27
#3408 - Joe Bentley / @joebentley10

04/18/2014 at 05:32PM

27
#3409 - daveseibert / @daveseibert

05/09/2014 at 08:45PM

27
#3410 - James Ryland Miller / @longhornxtreme

06/04/2014 at 11:36PM

27
#3411 - Jacob Rosenblatt / @JKRosenblatt

06/13/2014 at 03:58PM

27
#3412 - David Hume / @djh95

07/07/2014 at 09:29AM

27
#3413 - Siddhanathan S. / @siddhanathan

07/15/2014 at 05:38PM

27
#3414 - Michael Haig / @mhaig

08/19/2014 at 02:14AM

27
#3415 - Nicholas Lee-Hone / @NicholasLeeHone

10/13/2014 at 05:45PM

27
#3416 - Josh Szepietowski / @joshSzep

11/04/2014 at 11:20PM

27
#3417 - Carl Tashian / @tashian

03/17/2015 at 08:41PM

27
#3418 - 親の金でシャンプーを買うな / @jajkeqos

04/08/2015 at 08:38PM

27
#3419 - Evan Krause / @evangrayk

04/17/2015 at 12:05AM

27
#3420 - Austtin Schwartz / @490T2Schwartz

05/08/2015 at 03:29PM