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

3428 active golfers, 11002 entries

Leaderboard (lowest score wins):
14
#601 - Jonas / @jonaslasauskas

11/18/2015 at 02:03PM

14
#602 - AD / @Lievr0

11/21/2015 at 06:55AM

14
#603 - JoeyLyn / @JJoofk

11/22/2015 at 02:49PM

14
#604 - chris nojima / @chrisnojima

11/23/2015 at 01:01AM

14
#605 - Kaue Silveira / @kssilveira

11/26/2015 at 12:00AM

14
#606 - Mike Krason / @mfkrason

11/26/2015 at 02:26AM

14
#607 - kleiduif / @bertwinwubs

11/29/2015 at 12:45AM

14
#608 - Patrick Cichon / @the_nQL

12/07/2015 at 06:27PM

14
#609 - Jiahan Wang / @hijiahanwang123

12/08/2015 at 01:13AM

14
#610 - retro / @tryphopp

12/08/2015 at 01:12PM

14
#611 - Matthew Desjardins / @Desjardins_M

12/11/2015 at 08:37PM

14
#612 - Jan Path / @jan_path

12/17/2015 at 06:34PM

14
#613 - Gordon / @gordonczedik

12/20/2015 at 06:11PM

14
#614 - Egg / @hammingdistanc1

12/25/2015 at 09:49PM

14
#615 - aanton / @aanton

12/25/2015 at 10:15PM

14
#616 - Adv_Zxy / @adv_zxy

12/26/2015 at 09:56AM

14
#617 - Jon Krause / @jkrause314

01/01/2016 at 04:06PM

14
#618 - Oisin Carroll / @oisincar

01/03/2016 at 06:38PM

14
#619 - Saki Gw / @Sakigw

01/03/2016 at 07:30PM

14
#620 - Evgeny`s Kindle / @EvgenyKindle

01/08/2016 at 12:16AM

14
#621 - Alan Kang / @alankang

01/08/2016 at 02:19AM

14
#622 - Sam Stites / @SamStites

01/08/2016 at 04:43AM

14
#623 - Roberto Carraretto / @robcarraretto

01/09/2016 at 02:31PM

14
#624 - Aleksey Zhidkov / @AlexeyZhidkov

01/15/2016 at 09:34AM

14
#625 - thejojo87 / @thejojo1987

01/22/2016 at 02:09PM

14
#626 - Sheapel User / @sheapeluser

02/01/2016 at 08:58PM

14
#627 - Daniel Suh / @18kehops

02/02/2016 at 05:15AM

14
#628 - Thijs van den Anker / @thijsvdanker

02/04/2016 at 09:41PM

14
#629 - royer / @RoyerMoyer1

02/10/2016 at 06:07PM

14
#630 - Janine Cheng / @janineist

02/13/2016 at 05:09AM