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

3485 active golfers, 11183 entries

Leaderboard (lowest score wins):
28
#3391 - Saito, Jr. / @_fugaga_

12/10/2013 at 01:31PM

28
#3392 - Alexandr / @elshurito

02/03/2014 at 10:59AM

28
#3393 - Aseem Kumar / @asiampandey

05/17/2014 at 12:04AM

28
#3394 - Daniel / @dcmonger

07/18/2014 at 05:21AM

28
#3395 - Dane O'Connor / @thedeeno

01/02/2015 at 05:14AM

28
#3396 - TinPotRadio / @TinPotRadio1

09/24/2015 at 12:00PM

28
#3397 - Jonah Marts / @JonahMarts

06/22/2016 at 03:43AM

28
#3398 - Brandon Hops / @BrandonHops

09/29/2018 at 05:38PM

28
#3399 - Neil Johari / @neiljohari

12/24/2018 at 08:07PM

28
#3400 - Francois Urquhart / @LostUrquhart

05/13/2019 at 11:47AM

29
#3401 - Michael Moussa / @michaelmoussa

10/24/2013 at 11:51PM

29
#3402 - Søren Mikkelsen / @aamikkelsen

11/19/2013 at 07:53AM

29
#3403 - Kevin Emmett / @kjemmett

12/20/2013 at 05:24PM

29
#3404 - Ellis / @AltF4ToWin

02/01/2014 at 02:20PM

29
#3405 - Kristopher Kahn / @flumm0xed

07/19/2014 at 02:37PM

29
#3406 - Akshay Aurora / @akshayaurora

09/16/2014 at 07:31AM

29
#3407 - Juampy NR / @juampynr

10/22/2014 at 08:25AM

29
#3408 - Paul Jones / @thepauljones

06/18/2018 at 01:00PM

30
#3409 - mwcz / @mwcz

10/30/2013 at 07:38PM

30
#3410 - Mohamad Ayyash / @mkayyash

03/03/2014 at 08:40PM

30
#3411 - Peter / @HomePiece

04/24/2014 at 02:57PM

30
#3412 - Shota Bakuradze / @headshota1989

12/14/2015 at 02:17PM

30
#3413 - Vojtěch Pejša / @7Vojta7

01/25/2017 at 03:01PM

30
#3414 - Barespamtak / @barespamtak

09/06/2017 at 08:16AM

30
#3415 - dorpo / @dorpo2

11/01/2018 at 05:33PM

30
#3416 - James Stidard / @JamesStidard

05/05/2019 at 11:25PM

31
#3417 - Hiroshi Funai / @hfunai

09/23/2013 at 02:07AM

31
#3418 - Anton Yakimov / @kekc_tosha

10/01/2013 at 12:03AM

31
#3419 - fsaintjacques / @fsaintjacques

02/24/2014 at 12:57AM

31
#3420 - Xginn / @xginn8

03/27/2014 at 02:18AM