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

3561 active golfers, 11449 entries

Leaderboard (lowest score wins):
17
#2431 - foobarbazqux12345 / @foobarbazqux121

10/12/2018 at 05:18PM

17
#2432 - vg / @vg53210350

10/28/2018 at 06:52PM

17
#2433 - Tad McCorkle / @TAD897

11/09/2018 at 12:27AM

17
#2434 - faisal / @faisalhackshah

11/25/2018 at 02:09AM

17
#2435 - timonegk / @timonegk

11/26/2018 at 01:35PM

17
#2436 - BaffaloP 🐃🎨 / @bbaffalopp

11/28/2018 at 07:57AM

17
#2437 - Jasper Pangilinan / @JasperP

12/26/2018 at 05:18AM

17
#2438 -  Martijn Engler / @MartijnEngler

12/30/2018 at 06:59PM

17
#2439 - Steven Xie / @steven_s_xie

01/24/2019 at 11:49PM

17
#2440 - amal / @cdsudama

02/02/2019 at 02:48PM

17
#2441 - Amado Antonini / @AmadoAntonini

03/14/2019 at 12:31PM

17
#2442 - hoge2341836 / @RootShunsuke

04/07/2019 at 04:41AM

17
#2443 - JvdB01 / @JvdB001

05/07/2019 at 07:13PM

17
#2444 - Phoon / @justflashhim

05/10/2019 at 01:56PM

17
#2445 - JonasS / @jonas42s

05/29/2019 at 10:11AM

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

06/12/2019 at 11:36PM

17
#2447 - seul / @seul15987381

06/18/2019 at 08:53AM

17
#2448 - Rohit Kumar Jena / @rohitrango

07/07/2019 at 05:10AM

17
#2449 - r / @nameequalsmain

07/16/2019 at 12:45PM

17
#2450 - Nick Ciardiello / @NCiardiello

07/20/2019 at 06:31PM

17
#2451 - Pittson / @Pittson95

07/31/2019 at 07:20PM

17
#2452 - asdasd1337 / @asdasd13372

09/01/2019 at 09:55AM

17
#2453 - damien / @GreatTestyTest

11/11/2019 at 01:02AM

17
#2454 - jonathangai / @jonathangai1

11/26/2019 at 04:37PM

18
#2455 - DR / @dde81

05/15/2013 at 09:18AM

18
#2456 - tspilk / @tspilk

05/15/2013 at 03:39PM

18
#2457 - Björn Holdt / @bholdt

05/24/2013 at 06:51AM

18
#2458 - Lance Levine / @LanceSMLevine

05/25/2013 at 06:12AM

18
#2459 - Joe Sullivan / @itsjoesullivan

06/20/2013 at 03:53AM

18
#2460 - qtwtetrt / @qtwtetrt

06/23/2013 at 05:06PM