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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
17
#2641 - Moritz Schüpp / @moritzschuepp

01/20/2015 at 11:10AM

17
#2642 - Andrey / @andreyrmg

01/20/2015 at 12:14PM

17
#2643 - Gregory Newman / @bozoslivehere

01/23/2015 at 03:53AM

17
#2644 - 裏連 / @uraren_bot

02/02/2015 at 07:58AM

17
#2645 - 哆啦比猫 / @cjxgm2

02/13/2015 at 12:49PM

17
#2646 - Maiz Lulkin / @joaomilho

02/15/2015 at 01:00PM

17
#2647 - YK / @Dongas420

03/01/2015 at 02:11AM

17
#2648 - Deepak Surti / @dmsurti

03/12/2015 at 01:21PM

17
#2649 - el R / @el_r

03/14/2015 at 10:31PM

17
#2650 - Mart Birnbaum / @grinningc

03/19/2015 at 11:18AM

17
#2651 - Kamil Laskowski / @laskowskikamil

03/19/2015 at 08:52PM

17
#2652 - David Orr / @dorr91

03/23/2015 at 05:53PM

17
#2653 - ɐʇnɥsɐpoʇ / @todashuta

03/25/2015 at 09:30AM

17
#2654 - Raj / @brshenoy

04/02/2015 at 10:01PM

17
#2655 - talineo / @talineo_

04/10/2015 at 10:33PM

17
#2656 - Rathrio / @Rathrio

04/29/2015 at 04:40PM

17
#2657 - Alex Bartol / @alexbartol

05/07/2015 at 05:32PM

17
#2658 - luffy / @raxcoi

05/13/2015 at 07:51PM

17
#2659 - Hervé Rouault / @hrouault

06/09/2015 at 06:17PM

17
#2660 - Cakejoke / @Cakejoke

07/05/2015 at 02:53PM

17
#2661 - CoCo Loco / @lc2817

08/02/2015 at 09:54AM

17
#2662 - Blake Tereau / @BlakeTereau

08/11/2015 at 02:57AM

17
#2663 - Jinzhou Zhang / @jinzhouz

09/02/2015 at 09:51AM

17
#2664 - Andrew D. Wong / @andrewdwong

09/02/2015 at 03:13PM

17
#2665 - Tamas Gal (Tom) / @tamasgal

09/13/2015 at 07:01PM

17
#2666 - Dima / @diarworld

09/30/2015 at 03:50PM

17
#2667 - Darren Tsung / @darrentsung

10/02/2015 at 09:22PM

17
#2668 - Phil Ting / @philipjting

11/15/2015 at 06:12AM

17
#2669 - Julian / @JulianGindi

02/27/2016 at 08:26PM

17
#2670 - Chenut Ludovic / @7Brwa7

03/31/2016 at 08:22PM