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

3976 active golfers, 12991 entries

Leaderboard (lowest score wins):
23
#3661 - Chris Trotman / @solarnz

10/06/2014 at 01:30AM

23
#3662 - Vadim / @faberge_eggs

11/27/2014 at 11:52AM

23
#3663 - Will McClellan / @willmcc_

03/04/2015 at 06:12AM

23
#3664 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/27/2015 at 04:33PM

23
#3665 - Joseph Siddall / @jbsiddall

04/19/2015 at 06:09AM

23
#3666 - Gabriel Magno / @GabrielMagno

06/05/2015 at 10:23PM

23
#3667 - Dylan / @helloasdff

07/24/2015 at 03:33AM

23
#3668 - Michel Ganguin / @tinycrazyfish

03/02/2016 at 10:27AM

23
#3669 - Christopher Sipes / @Chris_Sipes

04/16/2016 at 07:15AM

23
#3670 - Michael Dykman / @MichaelDykman

04/28/2016 at 02:59PM

23
#3671 - Denys Zadorozhnyi / @greenden

06/14/2016 at 04:56PM

23
#3672 - Keith Rogers / @keirog

10/22/2016 at 04:58PM

23
#3673 - Aurélien Hervé / @aurel_herve

04/19/2017 at 03:46PM

23
#3674 - Juho Härme / @jharme

05/22/2017 at 08:45PM

23
#3675 - Bhatta Sushmith / @bsushmith

08/25/2017 at 08:56PM

23
#3676 - Scott Kidder / @scottkidder

11/09/2017 at 10:15PM

23
#3677 - Andrew Davis / @AndrewD14539793

01/28/2018 at 05:06AM

23
#3678 - Infinity Delta / @InfinityDelta

01/28/2018 at 04:48PM

23
#3679 - 이규승 / @IAHvPQrHVoh21zG

06/29/2018 at 08:39AM

23
#3680 - jenna why do i have to make this / @jenna_have

10/23/2019 at 11:39PM

23
#3681 - ENSORIZATION / @ensorization

11/01/2019 at 08:26PM

23
#3682 - Aaron / @_Lordofthevoid_

12/17/2019 at 05:55PM

23
#3683 - Sai Hemanth / @saihemanth9019

04/24/2020 at 12:09PM

23
#3684 - gino / @imGinoW

05/22/2020 at 04:33AM

23
#3685 - Theo 🙊 / @Theodonal

07/23/2020 at 09:02PM

23
#3686 - Kaustubh Murumkar / @k_austub_h

08/29/2020 at 01:20PM

23
#3687 - Tuukka Laitinen / @tuukka_la

09/21/2020 at 07:14PM

23
#3688 - Filipe 💙 / @ABarroso

11/02/2020 at 09:06PM

23
#3689 - zhaolei / @zhaolei

11/16/2020 at 12:13PM

23
#3690 - sh-wayz / @WayzSh

12/30/2020 at 03:42AM