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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
17
#2761 - kafang plays vimgolf / @KafangV

12/16/2020 at 03:01PM

17
#2762 - rats is a cool name / @cd_rum

12/24/2020 at 12:18AM

17
#2763 - Arryue / @Arryue2

01/26/2021 at 02:40AM

17
#2764 - russellzhaomao / @russellzhaomao

05/25/2022 at 10:08AM

17
#2765 - Leonard Bereska / @LeonardBereska

02/19/2023 at 10:24PM

17
#2766 - shahanavaz m / @shahanavazm

03/29/2024 at 04:52AM

17
#2767 - SRINIVASU SALADI / @SRINIVASUS22587

02/10/2025 at 03:24PM

18
#2768 - DR / @dde81

05/15/2013 at 09:18AM

18
#2769 - tspilk / @tspilk

05/15/2013 at 03:39PM

18
#2770 - Björn Holdt / @bholdt

05/24/2013 at 06:51AM

18
#2771 - Lance Levine / @LanceSMLevine

05/25/2013 at 06:12AM

18
#2772 - Joe Sullivan / @itsjoesullivan

06/20/2013 at 03:53AM

18
#2773 - qtwtetrt / @qtwtetrt

06/23/2013 at 05:06PM

18
#2774 - Marc Delagrammatikas / @marcdel

06/23/2013 at 11:10PM

18
#2775 - shpoont / @shpoont

06/30/2013 at 12:17PM

18
#2776 - Nick Todd / @NickTodd_

07/01/2013 at 10:29PM

18
#2777 - Marco Valtas / @mavcunha

07/12/2013 at 04:32AM

18
#2778 - benzrf / @benzrf

07/18/2013 at 03:53PM

18
#2779 - Vestrobaa / @Vestrobaa

07/18/2013 at 09:32PM

18
#2780 - caleb holt / @Zergleb

07/31/2013 at 07:47AM

18
#2781 - 0x0dd / @0x0DD

08/04/2013 at 08:47PM

18
#2782 - Przemysław Kamiński / @CXLII

08/05/2013 at 12:29PM

18
#2783 - Amos Chan / @amosfreakinchan

08/09/2013 at 05:58PM

18
#2784 - David Rosen / @DavidSRosen

08/12/2013 at 03:17AM

18
#2785 - Steve McHail / @smchail

08/21/2013 at 09:12AM

18
#2786 - Michał Bielawski / @m_bielawski

09/12/2013 at 11:52AM

18
#2787 - Alejandro Gómez / @dialelo

09/23/2013 at 10:00PM

18
#2788 - me / @turgleturgle

09/25/2013 at 07:15PM

18
#2789 - Andrew Clissold / @aclissold

09/26/2013 at 12:47PM

18
#2790 - prinz / @prinzdezibel

09/29/2013 at 07:32PM