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
#1261 - Víctor Brigé / @vbrige

11/03/2013 at 09:02PM

15
#1262 - Arthur叔 / @Arthurljg

11/05/2013 at 04:13AM

15
#1263 - arton0306 / @ArtonArton0306

11/05/2013 at 10:09AM

15
#1264 - Sam Saffron / @samsaffron

11/08/2013 at 02:11AM

15
#1265 - CY / @wongcy0

11/08/2013 at 04:49AM

15
#1266 - gary.klindt@googlema / @garstekli

11/10/2013 at 01:22PM

15
#1267 - Alexandros Giouzenis / @agiouz

11/15/2013 at 01:03PM

15
#1268 - 8xx8 / @8xx8ru

11/15/2013 at 03:49PM

15
#1269 - Alexey Mikka / @ILoGM

11/15/2013 at 03:49PM

15
#1270 - JTeo / @JTeosw

11/16/2013 at 07:57AM

15
#1271 - Omar Sandoval / @omsandov

11/16/2013 at 08:47AM

15
#1272 - Tosoa Bacca / @elsifaka

11/18/2013 at 07:24AM

15
#1273 - Max Edmands 🐭 / @thismax

11/22/2013 at 01:28AM

15
#1274 - Min Ma / @Miss0506

11/22/2013 at 07:34AM

15
#1275 - Sel / @BosioNoe

11/29/2013 at 12:37PM

15
#1276 - Martin Frost / @BlameFrost

12/02/2013 at 08:00PM

15
#1277 - Oskar Werkelin Ahlin / @osk_wa

12/02/2013 at 08:04PM

15
#1278 - Shannon Lee / @insomnie

12/05/2013 at 06:04PM

15
#1279 - Gary Liddon / @gyratory

12/06/2013 at 05:21AM

15
#1280 - Michael Peeters / @halfKL

12/09/2013 at 02:18PM

15
#1281 - Fetrarijaona Randria / @fetrarij

12/11/2013 at 04:27AM

15
#1282 - Bambu / @bambumandinga

12/13/2013 at 05:58AM

15
#1283 - Anatoliy C. / @1602

12/13/2013 at 12:11PM

15
#1284 - D / @justcallmedrago

12/14/2013 at 10:52PM

15
#1285 - Russ Adams / @rustushki

12/21/2013 at 09:21PM

15
#1286 - Josh Howe / @joshtch

12/21/2013 at 11:11PM

15
#1287 - Bradford Powell / @dr_bpow

12/22/2013 at 02:59AM

15
#1288 - Ali Moeeny MD PhD / @alimoeeny

12/29/2013 at 02:41AM

15
#1289 - Renan Gemignani / @rgeminas

12/31/2013 at 03:55PM

15
#1290 - Nipunn Koorapati / @nipunn1313

01/06/2014 at 06:18AM