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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
14
#661 - Michael Potter / @MicLeviPotter

03/02/2016 at 06:22AM

14
#662 - Sébastien Vincent / @shinmei

03/05/2016 at 03:38PM

14
#663 - Hao Chen / @Chen_Hao

03/09/2016 at 02:36AM

14
#664 - Charles Laber-Smith / @clabersmith

03/10/2016 at 06:10PM

14
#665 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 01:14AM

14
#666 - Mike G / @MikeG39938619

03/15/2016 at 02:07PM

14
#667 - Olivia Tharp / @tehlivi

03/23/2016 at 09:29PM

14
#668 - Janko Jerinic / @JankoJerinic

03/26/2016 at 08:10AM

14
#669 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 12:44PM

14
#670 - Patrick Elliott / @thatcsguy

03/30/2016 at 11:19PM

14
#671 - CM Déjardin ن / @CMDej

04/01/2016 at 07:50AM

14
#672 - Evan Moore / @etmoore

04/02/2016 at 06:56PM

14
#673 - extrintr / @extrintr

04/08/2016 at 09:52PM

14
#674 - fake geek guy / @light_rook

04/13/2016 at 11:33PM

14
#675 - S O / @strangelooperer

04/17/2016 at 02:10PM

14
#676 - mebubo / @mebubo

05/01/2016 at 08:58AM

14
#677 - John Goes / @johnwgoes

05/03/2016 at 05:34PM

14
#678 - T. Sakuma / @taku39

05/05/2016 at 02:17PM

14
#679 - Atrament / @Atrament

05/11/2016 at 09:44PM

14
#680 - aestetix / @aestetix

05/16/2016 at 05:02PM

14
#681 - Victorien Lorcy / @LorcyVictorien

05/17/2016 at 01:39PM

14
#682 - Michael / @michael40226613

05/23/2016 at 05:20AM

14
#683 - Slawek Zachcial / @SlawekZachcial

05/23/2016 at 09:28PM

14
#684 - John Doe Sr. / @johndoe67890543

05/26/2016 at 07:23PM

14
#685 - Ryan Dwyer / @ryan_dwyer

06/01/2016 at 06:10AM

14
#686 - Artūras Zakrevskis / @AZakrevskis

06/02/2016 at 01:04PM

14
#687 - Arijus / @argshook

06/02/2016 at 01:05PM

14
#688 - Tautvilas / @TautviIas

06/02/2016 at 01:08PM

14
#689 - tgmeng / @lazy_fabric

06/06/2016 at 08:37AM

14
#690 - jan sos / @jann6373

06/12/2016 at 03:01PM