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
#2701 - TJ Taylor / @dugancathal

11/05/2013 at 03:46AM

19
#2702 - Robert Danitz / @rdanitz

11/10/2013 at 12:57AM

19
#2703 - Lee Quarella / @leequarella

11/20/2013 at 10:24PM

19
#2704 - sandlion / @sandlion

11/23/2013 at 06:05PM

19
#2705 - MacauFriend / @log0

12/06/2013 at 10:16AM

19
#2706 - Runar / @runarfu

12/15/2013 at 07:47PM

19
#2707 - Andreas M.Ø. / @andreasmalling

12/16/2013 at 06:31PM

19
#2708 - Julien Lerouge / @rackamx

12/21/2013 at 12:29AM

19
#2709 - ont / @ontrif

12/28/2013 at 03:17PM

19
#2710 - S. Chirlo / @y_alonsog

01/05/2014 at 05:36PM

19
#2711 - Oran Looney / @oranlooney

01/08/2014 at 10:34PM

19
#2712 - Quentin Tai / @QuillyT

01/10/2014 at 10:51PM

19
#2713 - Jeff Rimko / @jeffrimko

01/11/2014 at 04:10AM

19
#2714 - CodeVision / @CodeVision_

01/21/2014 at 11:31PM

19
#2715 - Douglas Edmonson / @dedmons

01/27/2014 at 06:33PM

19
#2716 - Matt Earl / @Merl5000

01/28/2014 at 11:16PM

19
#2717 - Dan C / @dpc47

01/29/2014 at 01:01AM

19
#2718 - James Ed-Jo / @Jamedjo

01/29/2014 at 03:29AM

19
#2719 - Bilal Quadri / @BilalQuadri

01/29/2014 at 06:58AM

19
#2720 - Satoshi Kawasaki / @hobbes3k

01/29/2014 at 11:19PM

19
#2721 - Joao Trindade / @JoaoTrindade

01/31/2014 at 11:47AM

19
#2722 - freestlr / @freestlr

02/03/2014 at 08:41AM

19
#2723 - August / @DailyShowRating

02/16/2014 at 05:26PM

19
#2724 - Matt Stinson / @MrMatt2532

03/19/2014 at 07:34PM

19
#2725 - Dan Evron / @danevron

03/25/2014 at 01:43PM

19
#2726 - Yuval Netanel / @Yuval5555

03/25/2014 at 01:47PM

19
#2727 - Mathias Münch / @mmutng

03/25/2014 at 09:46PM

19
#2728 - Niklas / @niklasi

04/01/2014 at 11:11PM

19
#2729 - ところたん / @tokoro10g

04/06/2014 at 12:44PM

19
#2730 - Peter Strawson / @PeterStrawson

04/08/2014 at 09:36PM