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

3995 active golfers, 13063 entries

Leaderboard (lowest score wins):
15
#1291 - Oskar Werkelin Ahlin / @osk_wa

12/02/2013 at 08:04PM

15
#1292 - Shannon Lee / @insomnie

12/05/2013 at 06:04PM

15
#1293 - Gary Liddon / @gyratory

12/06/2013 at 05:21AM

15
#1294 - Michael Peeters / @halfKL

12/09/2013 at 02:18PM

15
#1295 - Fetrarijaona Randria / @fetrarij

12/11/2013 at 04:27AM

15
#1296 - Bambu / @bambumandinga

12/13/2013 at 05:58AM

15
#1297 - Anatoliy C. / @1602

12/13/2013 at 12:11PM

15
#1298 - D / @justcallmedrago

12/14/2013 at 10:52PM

15
#1299 - Russ Adams / @rustushki

12/21/2013 at 09:21PM

15
#1300 - Josh Howe / @joshtch

12/21/2013 at 11:11PM

15
#1301 - Bradford Powell / @dr_bpow

12/22/2013 at 02:59AM

15
#1302 - Ali Moeeny MD PhD / @alimoeeny

12/29/2013 at 02:41AM

15
#1303 - Renan Gemignani / @rgeminas

12/31/2013 at 03:55PM

15
#1304 - Nipunn Koorapati / @nipunn1313

01/06/2014 at 06:18AM

15
#1305 - Qhuatre / @Qhuatre

01/10/2014 at 04:10PM

15
#1306 - Mouse Potato / @mousepotatoweb

01/11/2014 at 10:33PM

15
#1307 - Mark Janssen / @MPCtje

01/15/2014 at 10:18AM

15
#1308 - Johan Berg / @_berg85

01/17/2014 at 01:55PM

15
#1309 - Benjamin Glassman / @squizztoupe

01/19/2014 at 09:48PM

15
#1310 - Kim Laï Trinh / @KimLaTrinh

01/23/2014 at 03:49PM

15
#1311 - Mark Wart / @2mando

01/27/2014 at 06:28AM

15
#1312 - Arsenic Hall / @FoxLisk

01/28/2014 at 08:27PM

15
#1313 - Hyper Bovine / @hyperbovine

01/28/2014 at 08:40PM

15
#1314 - Mike Hearn / @mikehearn

01/28/2014 at 10:40PM

15
#1315 - Kim Yie / @taalcon

01/28/2014 at 11:55PM

15
#1316 - Starski / @mstarski

01/29/2014 at 11:50AM

15
#1317 - John Phelan / @jackphel

02/01/2014 at 03:50AM

15
#1318 - Sherwin Yu / @sherwin_yu

02/01/2014 at 04:57AM

15
#1319 - Felix Fischer / @felixfischer

02/02/2014 at 04:53PM

15
#1320 - Sebastián Lara M. / @slaramen

02/02/2014 at 11:06PM