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

3725 active golfers, 12053 entries

Leaderboard (lowest score wins):
18
#2611 - edyfox / @edyfox

10/25/2013 at 02:01AM

18
#2612 - Jo Randomness / @JRandomness

10/26/2013 at 09:07PM

18
#2613 - Hoz / @hzopak

10/28/2013 at 03:06PM

18
#2614 - jmlucjav / @jmlucjav

10/29/2013 at 10:05PM

18
#2615 - Stephen G / @ssgelm

11/01/2013 at 09:17PM

18
#2616 - Rex Chung / @rexchung

11/05/2013 at 05:30AM

18
#2617 - Mike / @mikezter

11/07/2013 at 12:53PM

18
#2618 - Gökhan Arlı / @sylow

11/10/2013 at 10:11PM

18
#2619 - Will Handley / @falsewhenquined

11/24/2013 at 09:56PM

18
#2620 - Brett Cassette / @brettcassette

11/29/2013 at 09:37PM

18
#2621 - Martin Chabot / @martinosis

12/09/2013 at 01:28AM

18
#2622 - Anhad Jai Singh / @Ayos

12/16/2013 at 09:38PM

18
#2623 - Ian Laird / @irlaird

12/16/2013 at 09:53PM

18
#2624 - Aaron Burrow / @WillFapForFood

12/20/2013 at 02:33PM

18
#2625 - Paul Chandler / @chandlpa

12/21/2013 at 06:00AM

18
#2626 - Brian Peiris / @brianpeiris

12/22/2013 at 01:51AM

18
#2627 - ウチコ / @memememomo

12/24/2013 at 03:24AM

18
#2628 - Saeed Nejati / @saeedn

12/24/2013 at 08:50PM

18
#2629 - ntaλbs / @ntalbs

12/26/2013 at 02:49AM

18
#2630 - uli s / @uqs

12/26/2013 at 09:46PM

18
#2631 - Brooks Garrett / @brooksgarrett

12/29/2013 at 04:54AM

18
#2632 - Fake Name / @The_Real_User

01/05/2014 at 05:08PM

18
#2633 - Robert Argeanton / @argeanton

01/06/2014 at 08:39AM

18
#2634 - Sander Bogaert / @sanderbogaert

01/09/2014 at 04:21PM

18
#2635 - Jason Conklin / @ninly

01/21/2014 at 01:02PM

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

01/28/2014 at 08:11PM

18
#2637 - harsh / @harsh1618

01/29/2014 at 07:06AM

18
#2638 - n0nick / @n0nick

01/29/2014 at 08:00AM

18
#2639 - Craig Corcoran / @craigcorc

01/30/2014 at 07:14AM

18
#2640 - Trent Davies / @trenton

01/30/2014 at 07:40PM