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

3560 active golfers, 11444 entries

Leaderboard (lowest score wins):
26
#3421 - Pingtermasmoo / @pingtermasmoo

09/13/2018 at 07:55AM

26
#3422 - KöşeKafa / @kuarkonyum

09/28/2018 at 04:50PM

26
#3423 - Jonny Wilson / @thejondom

12/21/2018 at 09:27PM

26
#3424 - virus / @fishmobius

04/18/2019 at 04:05PM

26
#3425 - benco / @itsmebenco

05/31/2019 at 09:28AM

26
#3426 - huynhminhchu / @huynhminhchu

09/22/2019 at 10:53AM

26
#3427 - Magnus / @praktiskt

11/22/2019 at 06:52PM

27
#3428 - codegourmet / @codegourmet

10/01/2013 at 11:37AM

27
#3429 - Flops / @flops_dev

10/01/2013 at 06:52PM

27
#3430 - clemens / @clemens

10/27/2013 at 05:15PM

27
#3431 - Aaron Held / @iamaaronheld

12/15/2013 at 05:24PM

27
#3432 - Shaun Robinson / @env

02/11/2014 at 02:25AM

27
#3433 - Joe Bentley / @joebentley10

04/18/2014 at 05:32PM

27
#3434 - daveseibert / @daveseibert

05/09/2014 at 08:45PM

27
#3435 - James Ryland Miller / @longhornxtreme

06/04/2014 at 11:36PM

27
#3436 - Jacob Rosenblatt / @JKRosenblatt

06/13/2014 at 03:58PM

27
#3437 - David Hume / @djh95

07/07/2014 at 09:29AM

27
#3438 - Siddhanathan S. / @siddhanathan

07/15/2014 at 05:38PM

27
#3439 - Michael Haig / @mhaig

08/19/2014 at 02:14AM

27
#3440 - Nicholas Lee-Hone / @NicholasLeeHone

10/13/2014 at 05:45PM

27
#3441 - Josh Szepietowski / @joshSzep

11/04/2014 at 11:20PM

27
#3442 - Carl Tashian / @tashian

03/17/2015 at 08:41PM

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

04/08/2015 at 08:38PM

27
#3444 - Evan Krause / @evangrayk

04/17/2015 at 12:05AM

27
#3445 - Austtin Schwartz / @490T2Schwartz

05/08/2015 at 03:29PM

27
#3446 - Alphan Yılmaz / @alphanyilmaz

06/29/2015 at 01:57AM

27
#3447 - うえしゅん / @ueshun_jp

08/17/2015 at 05:44AM

27
#3448 - dattaz / @dat_taz

02/07/2016 at 09:54PM

27
#3449 - Ruby / @Rubzk

03/26/2018 at 03:13AM

27
#3450 - The9ain / @the9ain

08/03/2018 at 02:49AM