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

3898 active golfers, 12674 entries

Leaderboard (lowest score wins):
14
#631 - Thijs van den Anker / @thijsvdanker

02/04/2016 at 09:41PM

14
#632 - royer / @RoyerMoyer1

02/10/2016 at 06:07PM

14
#633 - Janine Cheng / @janineist

02/13/2016 at 05:09AM

14
#634 - Mathias Andersson / @Wraul

02/13/2016 at 06:52PM

14
#635 - Piotr Kowenzowski / @sacherus

02/18/2016 at 01:57PM

14
#636 - Northern Floats / @northernfloats

02/24/2016 at 04:02AM

14
#637 - Xiaocan Li / @XiaocanLi

02/26/2016 at 04:48AM

14
#638 - Jaron Hamlik / @jdhamlik

02/27/2016 at 03:05AM

14
#639 - Louis Caruana / @louiecaruana

02/29/2016 at 05:28AM

14
#640 - Michael Potter / @MicLeviPotter

03/02/2016 at 06:22AM

14
#641 - Sébastien Vincent / @shinmei

03/05/2016 at 03:38PM

14
#642 - Hao Chen / @Chen_Hao

03/09/2016 at 02:36AM

14
#643 - Charles Laber-Smith / @clabersmith

03/10/2016 at 06:10PM

14
#644 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 01:14AM

14
#645 - Mike G / @MikeG39938619

03/15/2016 at 02:07PM

14
#646 - Olivia Tharp / @tehlivi

03/23/2016 at 09:29PM

14
#647 - Janko Jerinic / @JankoJerinic

03/26/2016 at 08:10AM

14
#648 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 12:44PM

14
#649 - Patrick Elliott / @thatcsguy

03/30/2016 at 11:19PM

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

04/01/2016 at 07:50AM

14
#651 - Evan Moore / @etmoore

04/02/2016 at 06:56PM

14
#652 - extrintr / @extrintr

04/08/2016 at 09:52PM

14
#653 - fake geek guy / @light_rook

04/13/2016 at 11:33PM

14
#654 - S O / @strangelooperer

04/17/2016 at 02:10PM

14
#655 - mebubo / @mebubo

05/01/2016 at 08:58AM

14
#656 - John Goes / @johnwgoes

05/03/2016 at 05:34PM

14
#657 - T. Sakuma / @taku39

05/05/2016 at 02:17PM

14
#658 - Atrament / @Atrament

05/11/2016 at 09:44PM

14
#659 - aestetix / @aestetix

05/16/2016 at 05:02PM

14
#660 - Victorien Lorcy / @LorcyVictorien

05/17/2016 at 01:39PM