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):
15
#1201 - retired account / @retired10072015

06/03/2013 at 10:26AM

15
#1202 - Ryan Davis / @rsdavis865

06/07/2013 at 04:18AM

15
#1203 - rcmdnk / @rcmdnk

06/11/2013 at 11:00AM

15
#1204 - Eric Söderström / @eksoderstrom

06/13/2013 at 09:24PM

15
#1205 - Ryan Castillo / @rmcastil

06/23/2013 at 11:57PM

15
#1206 - Adrian Roston / @akroston

06/24/2013 at 01:51AM

15
#1207 - Jonáš Šerých / @serycjon

06/25/2013 at 08:14PM

15
#1208 - Arthur LEDARD / @arthur_yaal

06/27/2013 at 03:20PM

15
#1209 - Bogdan Gusiev / @bgusiev

06/28/2013 at 07:53PM

15
#1210 - Dom Armstrong / @dom_cycleface

06/30/2013 at 08:00PM

15
#1211 - zlydem / @zlydem

07/02/2013 at 02:34PM

15
#1212 - Sisso Ananda / @365DayToNibbana

07/02/2013 at 06:18PM

15
#1213 - Gosteau Alexandre / @eclostene

07/03/2013 at 12:34PM

15
#1214 - zmf_tim / @zmf_tim

07/04/2013 at 11:50AM

15
#1215 - Huu Nguyen / @huudev

07/09/2013 at 04:33PM

15
#1216 - omahn / @omahn

07/09/2013 at 08:26PM

15
#1217 - Bradd Szonye / @bszonye

07/09/2013 at 11:53PM

15
#1218 - Amos King / @Adkron

07/12/2013 at 02:58AM

15
#1219 - Roland Schatz / @fl_Overmind

07/12/2013 at 02:00PM

15
#1220 - Kelly Steensma / @kellystee

07/18/2013 at 01:42AM

15
#1221 - Ingo / @ist3fani

07/18/2013 at 06:53PM

15
#1222 - Trae Robrock / @trobrock

07/18/2013 at 07:09PM

15
#1223 - Bruno Sutic / @brunosutic

07/18/2013 at 10:24PM

15
#1224 - Peter Johannson / @PeterJohannson

08/03/2013 at 07:27PM

15
#1225 - Global Maquereau / @GlobalMaquereau

08/06/2013 at 07:03AM

15
#1226 - Kevin Etienne / @42__kevin

08/18/2013 at 06:25PM

15
#1227 - Rémi Jézéquel / @Remjez

08/23/2013 at 10:24AM

15
#1228 - Jason Davidson / @aka_lingy

08/24/2013 at 05:29PM

15
#1229 - Barry Nichols / @Barry_Nichols

08/26/2013 at 07:43AM

15
#1230 - Dan / @dan_winkler

08/26/2013 at 10:52AM