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

3731 active golfers, 12073 entries

Leaderboard (lowest score wins):
17
#2401 - George GZ Zakhour / @AlloGeorge

09/29/2013 at 02:47PM

17
#2402 - quadybohme / @quadybohme

10/04/2013 at 08:39PM

17
#2403 - Marcin Górnik / @gornikm

10/06/2013 at 05:35PM

17
#2404 - SpaceLi / @spacelis

10/12/2013 at 07:01AM

17
#2405 - Dimitar Dimitrov / @kurkale6ka

10/16/2013 at 10:08AM

17
#2406 - tcarobruce / @tcarobruce

10/22/2013 at 04:13PM

17
#2407 - ジャバScriptと和解せよ / @toby_net

10/28/2013 at 11:24AM

17
#2408 - Paul Lambda / @PaulLambda1

10/28/2013 at 12:49PM

17
#2409 - Marcin Katulski / @marcink79

11/04/2013 at 05:49AM

17
#2410 - Kerry Buckley / @kerryb

11/05/2013 at 02:11PM

17
#2411 - temp test / @temptest1234567

11/06/2013 at 04:49AM

17
#2412 - Erik Broman / @er1kb

11/11/2013 at 10:57PM

17
#2413 - Munen / @preek

11/13/2013 at 02:51PM

17
#2414 - Robin / @randuin

11/15/2013 at 06:41AM

17
#2415 - E.O. Stinson / @yostinso

11/15/2013 at 05:49PM

17
#2416 - Jason Wolf / @zephyr_wolf

11/19/2013 at 01:20PM

17
#2417 - Taku Okawa / @t4ku

11/23/2013 at 01:00PM

17
#2418 - JustGage / @JustGage

11/25/2013 at 03:51PM

17
#2419 - NIKAIDO Amane / @a2kaido

11/30/2013 at 03:00AM

17
#2420 - Lucas P Melo / @lucaspmelo

12/04/2013 at 09:43PM

17
#2421 - scott_royston / @scott_royston

12/08/2013 at 10:28PM

17
#2422 - Petr Broz / @ipetrbroz

12/17/2013 at 01:15AM

17
#2423 - wilddog64 / @chengkai318

12/17/2013 at 03:00PM

17
#2424 - Thijs Brobbel / @tiesmaster

12/17/2013 at 08:43PM

17
#2425 - Tom Richards / @the_tomrichards

12/20/2013 at 07:56PM

17
#2426 - raymangum / @raymangum

12/26/2013 at 11:23PM

17
#2427 - Alan Garfield / @alangarf

12/29/2013 at 04:55AM

17
#2428 - Yaroslav Pogrebnyak / @yyyrgh

01/01/2014 at 05:42PM

17
#2429 - Guillaume Seren / @guillaumeseren

01/06/2014 at 09:24AM

17
#2430 - JonnyRo / @JonnyRo

01/07/2014 at 11:47PM