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

3903 active golfers, 12677 entries

Leaderboard (lowest score wins):
14
#691 - poke / @useraaaaaaaaaaf

10/05/2016 at 01:44PM

14
#692 - trx / @trxdbg

10/10/2016 at 07:10AM

14
#693 - Nico / @_Nico_Caro

10/15/2016 at 03:19AM

14
#694 - Brian Mego / @Major251

10/18/2016 at 02:32AM

14
#695 - Karl Lundquist / @karllundquist

10/20/2016 at 11:49PM

14
#696 - 子皓翁 / @geniusgordon

10/26/2016 at 07:29AM

14
#697 - Davis Fields / @i301585

11/04/2016 at 03:48AM

14
#698 - nemonomine / @nemonomine

11/06/2016 at 06:02PM

14
#699 - Ignacio Catalina / @ignaciocatalina

11/08/2016 at 02:13PM

14
#700 - Alan Turing / @alantrng

11/13/2016 at 09:28AM

14
#701 - John Newbery / @jonnynewbs

11/14/2016 at 09:41AM

14
#702 - John Hassell / @jhassell

11/14/2016 at 03:58PM

14
#703 - i1464083 / @i1464083

11/18/2016 at 11:56AM

14
#704 - Jon Louie / @jjisnow

11/23/2016 at 10:37AM

14
#705 - Guillermo Guirao / @Funkatic

11/24/2016 at 08:53AM

14
#706 - Rodney Visser / @_Radnus

11/25/2016 at 07:22AM

14
#707 - Wessel Sinnema / @wsinnema

11/26/2016 at 01:04PM

14
#708 - Craig Langford / @cllangfo

12/11/2016 at 04:46PM

14
#709 - floccwins / @floccwins

12/13/2016 at 10:11AM

14
#710 - Roey Berman / @ManBergundyPig

12/16/2016 at 12:00AM

14
#711 - Nessig / @Nessig5

12/18/2016 at 07:35AM

14
#712 - Shashwat Raghuvanshi / @Shashwat_sr123

12/18/2016 at 12:19PM

14
#713 - Peter Chynoweth / @pcchynoweth

12/19/2016 at 06:56PM

14
#714 - Saurav Mitra / @SauravMitra11

12/31/2016 at 10:32AM

14
#715 - Abc Def / @phweiss1

01/03/2017 at 04:21PM

14
#716 - Alexey Filonenko / @BrightOne_LS

01/07/2017 at 08:20PM

14
#717 - Social Botolinum / @SocialBot4

01/08/2017 at 01:58PM

14
#718 - Михаил Доронин / @Boris_B_London

01/12/2017 at 07:58PM

14
#719 - racffee / @RacffedeRacffee

01/19/2017 at 12:53PM

14
#720 - terhorst / @terhorst

01/21/2017 at 06:29AM