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

3736 active golfers, 12094 entries

Leaderboard (lowest score wins):
17
#2551 - Kevin Durand / @kdthefakemvp

05/21/2018 at 01:46PM

17
#2552 - Tom Ient / @tom_ient

05/24/2018 at 06:19PM

17
#2553 - Jeff VanDyke / @jeffv_a216

07/10/2018 at 06:36PM

17
#2554 - Владислав / @papa_gusserl

07/26/2018 at 08:02PM

17
#2555 - Stefan Frid / @FridStefan

08/17/2018 at 08:25PM

17
#2556 - daniel / @daniel31464605

08/22/2018 at 08:04PM

17
#2557 - Frank Rifk / @r1fk

08/26/2018 at 04:50PM

17
#2558 - masterpi / @masterpi16

09/22/2018 at 08:58PM

17
#2559 - Drill / @DrillTroll

09/24/2018 at 10:17PM

17
#2560 - foobarbazqux12345 / @foobarbazqux121

10/12/2018 at 05:18PM

17
#2561 - vg / @vg53210350

10/28/2018 at 06:52PM

17
#2562 - Tad McCorkle / @TAD897

11/09/2018 at 12:27AM

17
#2563 - faisal / @faisalhackshah

11/25/2018 at 02:09AM

17
#2564 - timonegk / @timonegk

11/26/2018 at 01:35PM

17
#2565 - BaffaloP 🐃🎨 / @bbaffalopp

11/28/2018 at 07:57AM

17
#2566 - Jasper Pangilinan / @JasperP

12/26/2018 at 05:18AM

17
#2567 -  Martijn Engler / @MartijnEngler

12/30/2018 at 06:59PM

17
#2568 - Steven Xie / @steven_s_xie

01/24/2019 at 11:49PM

17
#2569 - amal / @cdsudama

02/02/2019 at 02:48PM

17
#2570 - Amado Antonini / @AmadoAntonini

03/14/2019 at 12:31PM

17
#2571 - hoge2341836 / @RootShunsuke

04/07/2019 at 04:41AM

17
#2572 - JvdB01 / @JvdB001

05/07/2019 at 07:13PM

17
#2573 - Phoon / @justflashhim

05/10/2019 at 01:56PM

17
#2574 - JonasS / @jonas42s

05/29/2019 at 10:11AM

17
#2575 - 𝕛𝕓𝕣𝕠𝕨𝕟 / @Roguelazer

06/12/2019 at 11:36PM

17
#2576 - seul / @seul15987381

06/18/2019 at 08:53AM

17
#2577 - Rohit Kumar Jena / @rohitrango

07/07/2019 at 05:10AM

17
#2578 - r / @nameequalsmain

07/16/2019 at 12:45PM

17
#2579 - Nick Ciardiello / @NCiardiello

07/20/2019 at 06:31PM

17
#2580 - Pittson / @Pittson95

07/31/2019 at 07:20PM