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

3626 active golfers, 11693 entries

Leaderboard (lowest score wins):
21
#3091 - Sven Hedin / @HedinR7

01/11/2014 at 01:13PM

21
#3092 - Tudor Barbu / @motanelu

01/11/2014 at 05:13PM

21
#3093 - Shaun Bloom / @blooms34

01/16/2014 at 07:38PM

21
#3094 - Justin Johnson / @j26774

01/17/2014 at 04:29PM

21
#3095 - changling / @Lspacewalker

01/21/2014 at 10:34PM

21
#3096 - markos rendell / @markosrendell

01/22/2014 at 02:41PM

21
#3097 - Jae Won Kim / @jaewone

01/26/2014 at 06:20PM

21
#3098 - Johan Ask / @snobbslakt

01/28/2014 at 02:32PM

21
#3099 - lukeasrodgers / @lukeasrodgers

01/28/2014 at 09:53PM

21
#3100 - ひげまにや / @higemaniya

01/29/2014 at 02:33AM

21
#3101 - Larijohn Adorable / @jbpnoy6fifty

01/29/2014 at 05:16AM

21
#3102 - Matt Brown / @Gowabash

01/30/2014 at 12:10AM

21
#3103 - Nick Austin / @NickAustin13

01/30/2014 at 05:55PM

21
#3104 - Tomasz Janeczko / @tomekjaneczko

01/31/2014 at 02:01AM

21
#3105 - makuchy / @makuchy

02/01/2014 at 12:48PM

21
#3106 - Zudov / @zudov_me

02/02/2014 at 09:27PM

21
#3107 - Kerem Bozdaş / @krmbzds

02/03/2014 at 06:36AM

21
#3108 - Christopher Hebert / @chebertapps

02/03/2014 at 09:05AM

21
#3109 - Andrey Kolomoets / @andreyk_mad

02/03/2014 at 12:30PM

21
#3110 - Chris Yuen / @kizzx2

02/06/2014 at 09:22AM

21
#3111 - Tojo Chacko / @tojochacko

02/19/2014 at 08:27PM

21
#3112 - Jon Wade / @jh_wade

02/23/2014 at 09:05PM

21
#3113 - i5513 / @i5513

02/25/2014 at 11:07PM

21
#3114 - Fred / @fredlee

03/01/2014 at 04:30PM

21
#3115 - John Mercer / @jfmercer

03/02/2014 at 10:19PM

21
#3116 - Franck / @_frp

03/04/2014 at 09:27AM

21
#3117 - Sravan Prasad / @SravanPrasad2

03/07/2014 at 09:12PM

21
#3118 - Kevin Gillieron / @gilliek42

03/12/2014 at 12:37PM

21
#3119 - TimWolla / @TimWolla

03/13/2014 at 08:57PM

21
#3120 - fred wong / @fredw08

03/17/2014 at 04:23PM