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

3970 active golfers, 12969 entries

Leaderboard (lowest score wins):
15
#1681 - Coruja Queridinha / @miriamretka

08/20/2018 at 10:57AM

15
#1682 - bluemartian / @bluemartianz59

08/21/2018 at 01:11AM

15
#1683 - Víctor López / @viticlick

08/22/2018 at 12:24PM

15
#1684 - Chi Jun / @jun13blu

08/28/2018 at 08:14AM

15
#1685 - Daniel Vaqueiro / @chimidea

08/28/2018 at 11:17PM

15
#1686 - Epecb / @BceEpecb

09/04/2018 at 07:29PM

15
#1687 - A E / @aechirps

09/11/2018 at 09:24PM

15
#1688 - Ivan Ho / @ivandaho

09/20/2018 at 10:29AM

15
#1689 - Not real / @Notreal70353016

09/21/2018 at 10:25PM

15
#1690 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 02:36AM

15
#1691 - golgi / @gloggyapparatus

10/02/2018 at 09:14AM

15
#1692 - Jonghyun Yun / @JonghyunYun

10/04/2018 at 03:49AM

15
#1693 - Juan / @jubujjamer

10/17/2018 at 05:35PM

15
#1694 - Dave Brda / @BrdaDave

10/25/2018 at 02:26PM

15
#1695 - Finn Francis / @FinnFrancis

10/26/2018 at 11:38PM

15
#1696 - Ole Mussmann / @isbjornlabs

10/28/2018 at 09:54AM

15
#1697 - Why Am / @WhysDeCatOnFire

11/10/2018 at 02:05AM

15
#1698 - Wouter Horlings / @Achilleshiel

11/14/2018 at 08:56AM

15
#1699 - Mihai / @mihaicristiant

11/27/2018 at 01:18PM

15
#1700 - Anant Mishra / @anantanni22

11/30/2018 at 09:34AM

15
#1701 - i33 / @i3342th

12/04/2018 at 09:59AM

15
#1702 - diwa / @Di_nate_

12/07/2018 at 08:44AM

15
#1703 - Quark / @PuzzleQuark

12/12/2018 at 01:08AM

15
#1704 - Rossi / @mrossinek

12/20/2018 at 11:48AM

15
#1705 - Sebastien Nicoud / @sebnukem

12/26/2018 at 01:58AM

15
#1706 - Slawek Ligus / @ooz_ie

12/27/2018 at 06:06AM

15
#1707 - Nate / @natedoran

01/06/2019 at 08:17AM

15
#1708 - Valacar / @valacar

01/08/2019 at 10:18PM

15
#1709 - abgalphabet / @abgalphabet

01/13/2019 at 08:00AM

15
#1710 - Mario Olofo / @mario_olofo

01/17/2019 at 04:13AM