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

3904 active golfers, 12678 entries

Leaderboard (lowest score wins):
21
#3391 - Kedar / @0xKD

11/10/2014 at 03:58PM

21
#3392 - Frank Zhang / @njzyf

12/23/2014 at 08:21PM

21
#3393 - Rob / @robban1324

01/07/2015 at 07:39AM

21
#3394 - makohoek / @MattijsKorp

01/08/2015 at 12:19PM

21
#3395 - Željko Nešić / @poparasan

01/09/2015 at 01:45PM

21
#3396 - Thomson Tan / @acccel

01/09/2015 at 02:27PM

21
#3397 - m1r4ge / @m1r4ge_ror

01/19/2015 at 08:58PM

21
#3398 - Алина Михалькова / @smertskosoi1

01/26/2015 at 02:10PM

21
#3399 - Ducky / @MegaDucky9000

02/03/2015 at 03:20PM

21
#3400 - Константин Кочнев / @kostya_white

02/11/2015 at 09:46AM

21
#3401 - Алексанр Цыганков / @capybarov

02/16/2015 at 02:23PM

21
#3402 - Boon-Hau Teh / @boondigo

02/27/2015 at 06:13PM

21
#3403 - Yuan Guan / @yuanguan89

02/28/2015 at 02:09AM

21
#3404 - vimgolf / @neovimp

03/04/2015 at 06:23PM

21
#3405 - Mickael Le Gal / @mickaellegal

03/29/2015 at 12:14PM

21
#3406 - Johannes Elferich / @jojoelfe

04/25/2015 at 06:11AM

21
#3407 - m a c s f / @macsf

05/07/2015 at 02:05PM

21
#3408 - Teemu Okkonen / @TeemuOkkonen

07/06/2015 at 08:24PM

21
#3409 - gyermolenko / @gyermolenko_

08/13/2015 at 08:47AM

21
#3410 - Andrew Michaud / @andrewjmichaud

09/04/2015 at 12:46AM

21
#3411 - Jo / @jonearth42

11/22/2015 at 12:53PM

21
#3412 - kaan / @bike

12/14/2015 at 07:21PM

21
#3413 - Pratap Koritala / @pratap_koritala

02/16/2016 at 05:05PM

21
#3414 - Louis Ritchie / @_louisr_

03/31/2016 at 04:35AM

21
#3415 - Jonathan Werner / @jonathanewerner

07/09/2016 at 06:09PM

21
#3416 - Alejandro Claro / @alejandroclaro

07/13/2016 at 09:57PM

21
#3417 - PeterGC / @petkusGC

07/17/2016 at 08:03PM

21
#3418 - Ryan van Rensburg / @rdvr001

07/18/2016 at 04:32PM

21
#3419 - Marko / @ultrox

11/07/2016 at 11:35AM

21
#3420 - Yann Colina / @YannColina

11/13/2016 at 09:36PM