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

3561 active golfers, 11449 entries

Leaderboard (lowest score wins):
19
#2791 - Justin Smalkowski / @jdssmallz

10/27/2016 at 05:19PM

19
#2792 - holy_sin / @0zero0

12/09/2016 at 08:31AM

19
#2793 - Eric Bakan / @ericbakan

03/14/2017 at 09:55PM

19
#2794 - Mitchell / @Spitchell

03/15/2017 at 11:42PM

19
#2795 - Abhishek Amberkar / @greenmang0

03/26/2017 at 04:03PM

19
#2796 - David Harks / @TheWaterOnFire

04/04/2017 at 01:40AM

19
#2797 - brucesnyder / @brucesnyder

05/04/2017 at 11:34PM

19
#2798 - dvorak / @dvorak0

05/06/2017 at 02:39PM

19
#2799 - Dielos / @Dielos

05/17/2017 at 12:02PM

19
#2800 - IgnatiusMcGowan / @IgnatiusMcGowan

05/23/2017 at 10:25PM

19
#2801 - Giovanni Lagorio / @zxgio

06/25/2017 at 03:17PM

19
#2802 - test / @apartment1812

07/13/2017 at 04:45PM

19
#2803 - Asno / @AsnoGordo

08/12/2017 at 01:47AM

19
#2804 - Floris van Liere / @FlorisvanLiere

08/15/2017 at 09:12PM

19
#2805 - Stuart Freeman / @seriouslyuguys

08/23/2017 at 05:45PM

19
#2806 - Hans Vennegoor / @HansVennegoor

08/24/2017 at 05:47PM

19
#2807 - Jason Liang / @bummerjacket

09/05/2017 at 05:36AM

19
#2808 - William Burns / @_william_burns

10/06/2017 at 08:11PM

19
#2809 - Adam Townsend / @despendesigns

01/26/2018 at 08:53PM

19
#2810 - rvnjsphdmn / @rvnjsphdmn

02/05/2018 at 03:59PM

19
#2811 - Romain D. / @r_dulery

02/05/2018 at 07:39PM

19
#2812 - 王有铭 / @coder_ming

02/26/2018 at 02:43PM

19
#2813 - countime / @countime1

03/05/2018 at 06:10AM

19
#2814 - かざの@MHW / @kazano_spc

03/07/2018 at 06:47AM

19
#2815 - Sergio Semedi / @SergioSemedi

03/14/2018 at 06:40PM

19
#2816 - Akilan Anbalagan / @akilananb

03/26/2018 at 02:59PM

19
#2817 - hansameel / @HansAmeel

04/14/2018 at 01:16PM

19
#2818 - J Paul Daigle / @philosodad

04/26/2018 at 03:49PM

19
#2819 - fdasfasfasga / @deteriorateredu

05/10/2018 at 04:45PM

19
#2820 - Colin Hart / @ColinTheRobot

06/06/2018 at 06:11PM