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

3991 active golfers, 13054 entries

Leaderboard (lowest score wins):
15
#1261 - bunnies president / @bunnies4p

10/22/2013 at 01:18PM

15
#1262 - Roger Bongers / @RogerBongers

10/23/2013 at 01:56AM

15
#1263 - Marc Dix / @marcdix

10/23/2013 at 07:34PM

15
#1264 - James O Smith / @josmith4242

10/23/2013 at 08:35PM

15
#1265 - A. N. / @arez42

10/24/2013 at 05:33AM

15
#1266 - John Boyd / @theboydvoid

10/25/2013 at 12:21AM

15
#1267 - Jonas Granquist / @jonasgranquist

10/25/2013 at 03:25PM

15
#1268 - Rohan Orton / @rohan_orton

10/26/2013 at 10:30PM

15
#1269 - Fnord Everywhere / @FnordE

10/30/2013 at 01:22PM

15
#1270 - Balthamos / @balthamos89

11/02/2013 at 01:27AM

15
#1271 - satchmorun / @satchmorun

11/03/2013 at 06:43PM

15
#1272 - Víctor Brigé / @vbrige

11/03/2013 at 09:02PM

15
#1273 - Arthur叔 / @Arthurljg

11/05/2013 at 04:13AM

15
#1274 - arton0306 / @ArtonArton0306

11/05/2013 at 10:09AM

15
#1275 - Sam Saffron / @samsaffron

11/08/2013 at 02:11AM

15
#1276 - CY / @wongcy0

11/08/2013 at 04:49AM

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

11/10/2013 at 01:22PM

15
#1278 - Alexandros Giouzenis / @agiouz

11/15/2013 at 01:03PM

15
#1279 - 8xx8 / @8xx8ru

11/15/2013 at 03:49PM

15
#1280 - Alexey Mikka / @ILoGM

11/15/2013 at 03:49PM

15
#1281 - JTeo / @JTeosw

11/16/2013 at 07:57AM

15
#1282 - Omar Sandoval / @omsandov

11/16/2013 at 08:47AM

15
#1283 - Tosoa Bacca / @elsifaka

11/18/2013 at 07:24AM

15
#1284 - Max Edmands 🐭 / @thismax

11/22/2013 at 01:28AM

15
#1285 - Min Ma / @Miss0506

11/22/2013 at 07:34AM

15
#1286 - Sel / @BosioNoe

11/29/2013 at 12:37PM

15
#1287 - Martin Frost / @BlameFrost

12/02/2013 at 08:00PM

15
#1288 - Oskar Werkelin Ahlin / @osk_wa

12/02/2013 at 08:04PM

15
#1289 - Shannon Lee / @insomnie

12/05/2013 at 06:04PM

15
#1290 - Gary Liddon / @gyratory

12/06/2013 at 05:21AM