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
#721 - Alan Turing / @alantrng

11/13/2016 at 09:28AM

14
#722 - John Newbery / @jonnynewbs

11/14/2016 at 09:41AM

14
#723 - John Hassell / @jhassell

11/14/2016 at 03:58PM

14
#724 - i1464083 / @i1464083

11/18/2016 at 11:56AM

14
#725 - Jon Louie / @jjisnow

11/23/2016 at 10:37AM

14
#726 - Guillermo Guirao / @Funkatic

11/24/2016 at 08:53AM

14
#727 - Rodney Visser / @_Radnus

11/25/2016 at 07:22AM

14
#728 - Wessel Sinnema / @wsinnema

11/26/2016 at 01:04PM

14
#729 - Craig Langford / @cllangfo

12/11/2016 at 04:46PM

14
#730 - floccwins / @floccwins

12/13/2016 at 10:11AM

14
#731 - Roey Berman / @ManBergundyPig

12/16/2016 at 12:00AM

14
#732 - Nessig / @Nessig5

12/18/2016 at 07:35AM

14
#733 - Shashwat Raghuvanshi / @Shashwat_sr123

12/18/2016 at 12:19PM

14
#734 - Peter Chynoweth / @pcchynoweth

12/19/2016 at 06:56PM

14
#735 - Saurav Mitra / @SauravMitra11

12/31/2016 at 10:32AM

14
#736 - Abc Def / @phweiss1

01/03/2017 at 04:21PM

14
#737 - Alexey Filonenko / @BrightOne_LS

01/07/2017 at 08:20PM

14
#738 - Social Botolinum / @SocialBot4

01/08/2017 at 01:58PM

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

01/12/2017 at 07:58PM

14
#740 - racffee / @RacffedeRacffee

01/19/2017 at 12:53PM

14
#741 - terhorst / @terhorst

01/21/2017 at 06:29AM

14
#742 - setNull / @dadaojiemo

01/24/2017 at 12:58PM

14
#743 - Zhihong Liu / @pieapple03

01/24/2017 at 04:30PM

14
#744 - Eduardo Hashimoto / @eduhashi

01/27/2017 at 02:22AM

14
#745 - sijinyuan / @sijinyuan

02/06/2017 at 07:55AM

14
#746 - Birger / @Birger_Ni

02/08/2017 at 08:43AM

14
#747 - Eduardo Almeida / @idurdo

02/17/2017 at 01:40PM

14
#748 - Angel Chiang / @angelchiang

02/21/2017 at 04:08AM

14
#749 - Tim Grebien / @tiggg

02/21/2017 at 12:01PM

14
#750 - hen don / @hendon112

02/26/2017 at 11:28AM