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

3536 active golfers, 11370 entries

Leaderboard (lowest score wins):
21
#3031 - Chris Yuen / @kizzx2

02/06/2014 at 09:22AM

21
#3032 - Tojo Chacko / @tojochacko

02/19/2014 at 08:27PM

21
#3033 - Jon Wade / @jh_wade

02/23/2014 at 09:05PM

21
#3034 - i5513 / @i5513

02/25/2014 at 11:07PM

21
#3035 - Fred / @fredlee

03/01/2014 at 04:30PM

21
#3036 - John Mercer / @jfmercer

03/02/2014 at 10:19PM

21
#3037 - Franck / @_frp

03/04/2014 at 09:27AM

21
#3038 - Sravan Prasad / @SravanPrasad2

03/07/2014 at 09:12PM

21
#3039 - Kevin Gillieron / @gilliek42

03/12/2014 at 12:37PM

21
#3040 - TimWolla / @TimWolla

03/13/2014 at 08:57PM

21
#3041 - fred wong / @fredw08

03/17/2014 at 04:23PM

21
#3042 - Brian Olpin / @bolpin

03/22/2014 at 03:36PM

21
#3043 - Eyal Luxenburg / @eluxen

03/25/2014 at 01:41PM

21
#3044 - Dominik Schemmel / @vimgolfhandicap

03/28/2014 at 01:38PM

21
#3045 - Sheriuki / @sheriuki

03/28/2014 at 01:46PM

21
#3046 - Mick Garvey / @blarko

04/01/2014 at 12:02AM

21
#3047 - senbong / @senbong87

04/05/2014 at 03:18AM

21
#3048 - Yasuhiro Яша Asaka / @grauwoelfchen

04/12/2014 at 05:26AM

21
#3049 - Charles Neill / @ccneill

05/01/2014 at 01:54AM

21
#3050 - Jeff Parent / @jeffparent

05/11/2014 at 01:27PM

21
#3051 - Rajesh Duggal / @rduggal

05/15/2014 at 06:23PM

21
#3052 - Jim Hester / @the_belal

05/19/2014 at 07:16PM

21
#3053 - Tapio Salonsaari / @tapiosalonsaari

05/21/2014 at 12:45PM

21
#3054 - Danis Cat Joko / @daniscatjoko

05/26/2014 at 12:12AM

21
#3055 - Alexandre Dubreuil / @dubreuia

06/02/2014 at 09:22PM

21
#3056 - Jake Marsh / @jakemmarsh

06/03/2014 at 04:05PM

21
#3057 - Joop Pascha / @PaschaJ

06/14/2014 at 08:23AM

21
#3058 - Jonathan Paulson / @PaulsonJonathan

06/15/2014 at 01:00AM

21
#3059 - Jemma / @Fwippy

06/18/2014 at 11:02PM

21
#3060 - Dawn Woodard / @kiarabird42

06/23/2014 at 11:08PM