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):
18
#2521 - Daniel / @danielpie92

03/08/2014 at 10:28PM

18
#2522 - Johannes K / @JohannesK9

03/16/2014 at 06:30PM

18
#2523 - szetobo / @szetobo

03/20/2014 at 02:13PM

18
#2524 - Travis Hegner / @travishegner

04/04/2014 at 08:38PM

18
#2525 - Niclas Thall / @thallniclas

04/10/2014 at 08:07PM

18
#2526 - Dylan Farnsworth / @FarnsworthDylan

04/21/2014 at 11:39PM

18
#2527 - damiann / @_d4mian

04/24/2014 at 05:25PM

18
#2528 - Solar Powered Robot / @moskrin

05/01/2014 at 05:27PM

18
#2529 - 逆铭 / @tomtung

05/09/2014 at 07:06AM

18
#2530 - Henry Blevins / @HenryBlevins

05/14/2014 at 05:21PM

18
#2531 - Pile of Goats / @Hillelogram

05/15/2014 at 12:48AM

18
#2532 - Phil Pirozhkov / @philpirj

05/17/2014 at 01:47PM

18
#2533 - Dan / @dcuaron

05/26/2014 at 05:51AM

18
#2534 - Andrew Hyatt / @andrewhyatt

06/07/2014 at 07:05PM

18
#2535 - Tobias Brixen / @brixendk

06/08/2014 at 08:16AM

18
#2536 - compiled wrong / @compiledwrong

06/16/2014 at 07:11AM

18
#2537 - fa / @twiteciop

08/06/2014 at 02:56PM

18
#2538 - Robert Dyer / @NavyJim13

08/09/2014 at 12:11AM

18
#2539 - Nubes / @shanshuiluren

08/17/2014 at 10:22AM

18
#2540 - Leonid K. / @AzorejK

08/26/2014 at 09:08AM

18
#2541 - Darrin McCarthy / @darrinmc

08/30/2014 at 05:16AM

18
#2542 - Jonas / @j0na3

09/11/2014 at 09:23PM

18
#2543 - Wandering ponderer / @0proxycon

09/28/2014 at 11:49AM

18
#2544 - takashi / @k_takashi0309

10/08/2014 at 01:12PM

18
#2545 - Jake Worth / @jwworth

10/11/2014 at 05:32PM

18
#2546 - Michael Kolupaev / @al13n321

10/28/2014 at 11:20PM

18
#2547 - Jesse Morton / @Jesse_Motion

11/03/2014 at 07:12AM

18
#2548 - Éric Calvayrac / @xarmux2

11/05/2014 at 11:39PM

18
#2549 - Brian Sloan / @BrianSloan2

11/12/2014 at 03:56AM

18
#2550 - jiangchuan / @tommy_he

11/15/2014 at 09:57AM