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
#2491 - Martin Chabot / @martinosis

12/09/2013 at 01:28AM

18
#2492 - Anhad Jai Singh / @Ayos

12/16/2013 at 09:38PM

18
#2493 - Ian Laird / @irlaird

12/16/2013 at 09:53PM

18
#2494 - Aaron Burrow / @WillFapForFood

12/20/2013 at 02:33PM

18
#2495 - Paul Chandler / @chandlpa

12/21/2013 at 06:00AM

18
#2496 - Brian Peiris / @brianpeiris

12/22/2013 at 01:51AM

18
#2497 - ウチコ / @memememomo

12/24/2013 at 03:24AM

18
#2498 - Saeed Nejati / @saeedn

12/24/2013 at 08:50PM

18
#2499 - ntalbs / @ntalbs

12/26/2013 at 02:49AM

18
#2500 - uli s / @uqs

12/26/2013 at 09:46PM

18
#2501 - Brooks Garrett / @brooksgarrett

12/29/2013 at 04:54AM

18
#2502 - Fake Name / @The_Real_User

01/05/2014 at 05:08PM

18
#2503 - Robert Argeanton / @argeanton

01/06/2014 at 08:39AM

18
#2504 - Sander Bogaert / @sanderbogaert

01/09/2014 at 04:21PM

18
#2505 - Jason Conklin / @ninly

01/21/2014 at 01:02PM

18
#2506 - J.-B. Yunès / @iProgrammeur

01/28/2014 at 08:11PM

18
#2507 - harsh / @harsh1618

01/29/2014 at 07:06AM

18
#2508 - n0nick / @n0nick

01/29/2014 at 08:00AM

18
#2509 - Craig Corcoran / @craigcorc

01/30/2014 at 07:14AM

18
#2510 - Trent Davies / @trenton

01/30/2014 at 07:40PM

18
#2511 - Joshua Tacoma / @yellowseed

02/02/2014 at 03:09PM

18
#2512 - Amy Lim / @chasingkytes

02/02/2014 at 11:03PM

18
#2513 - Patrick M. Regan / @rubbsdecvik

02/03/2014 at 02:31AM

18
#2514 - John Hilts / @johnhilts

02/04/2014 at 06:55AM

18
#2515 - Gowtham Madhava / @gowthamgowtham

02/07/2014 at 03:12PM

18
#2516 - Trader / @bolatrade

02/13/2014 at 03:09PM

18
#2517 - Kalan / @enhydra

02/20/2014 at 06:14PM

18
#2518 - Jordi Coscolla / @kozko2001

03/01/2014 at 05:18PM

18
#2519 - Thomas GUILLORY / @thomasguillory

03/04/2014 at 01:04PM

18
#2520 - Peter Lacey-Bordeaux / @placeybordeaux

03/06/2014 at 10:54PM