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
#2611 - Ricardo Lima / @ricponteslima

04/22/2014 at 03:31PM

17
#2612 - Alejandro DeGregorio / @degregorio_ale

04/23/2014 at 02:20PM

17
#2613 - 병훈 / @qudgns

04/24/2014 at 03:14PM

17
#2614 - Heron Medeiros / @heronmedeiros

05/14/2014 at 11:17PM

17
#2615 - tullie / @tulliemurrell

05/17/2014 at 04:07AM

17
#2616 - Gabutero / @wizmokeri

06/17/2014 at 07:08AM

17
#2617 - Jeroen Bulters / @bulters

06/22/2014 at 01:46PM

17
#2618 - Javier Blanco / @jbgutierrez

06/24/2014 at 11:11AM

17
#2619 - Jonathan Skeate / @jskeate

06/30/2014 at 09:00PM

17
#2620 - king sized toilet / @ohwowcrazy

07/01/2014 at 01:28AM

17
#2621 - Kirill / @wedens_

07/09/2014 at 05:56AM

17
#2622 - Haoxuan Yue / @yuehaoxuanar

07/16/2014 at 03:58PM

17
#2623 - Sebastian B / @cyborgryna

07/18/2014 at 04:48PM

17
#2624 - Matthew Barrington / @mbarrin

07/30/2014 at 09:32PM

17
#2625 - Patrick Pitoscia / @Patrick03960431

08/03/2014 at 02:48AM

17
#2626 - Ben Haines / @bhainesva

08/07/2014 at 04:27PM

17
#2627 - bratliff / @bratliff

08/10/2014 at 05:53AM

17
#2628 - Daniel Helfrich / @lazyman114

08/28/2014 at 11:53PM

17
#2629 - JPL / @jplecaille

09/03/2014 at 08:44AM

17
#2630 - dylan / @dcourv

09/20/2014 at 05:35PM

17
#2631 - Robbie Clarken / @robbieclarken

09/29/2014 at 11:19AM

17
#2632 - Matthew Thompson / @cblop

10/03/2014 at 09:20AM

17
#2633 - Ben Moon / @GuiltyDolphin

10/05/2014 at 08:31PM

17
#2634 - jared swarts / @JaredSwarts

12/12/2014 at 10:59PM

17
#2635 - Araka Bar / @ArakaBar

12/23/2014 at 10:35AM

17
#2636 - allenxuyb / @allenxuyb

12/26/2014 at 04:48AM

17
#2637 - 曾鹏文 / @ZengPengWen

12/27/2014 at 11:53AM

17
#2638 - Eric Biven / @EricBiven

12/31/2014 at 09:53PM

17
#2639 - Bill Fern / @Fernious

01/05/2015 at 07:40PM

17
#2640 - Ulysse Carion / @ucarion

01/13/2015 at 04:00AM