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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
17
#2551 - Kyle Partridge / @partkyle

06/24/2013 at 05:39PM

17
#2552 - Alexey / @kramar42

07/04/2013 at 01:08PM

17
#2553 - curist / @curist

07/08/2013 at 08:08AM

17
#2554 - Forrest Zeisler / @fzeisler

07/08/2013 at 07:55PM

17
#2555 - RobertT / @techrt2050

07/10/2013 at 01:17AM

17
#2556 - Christopher Bahr / @bahrware

07/11/2013 at 03:46AM

17
#2557 - Austin Quan / @n00blebowl

07/31/2013 at 12:48AM

17
#2558 - Joel Trottier-Hebert / @JoelTHebert

08/14/2013 at 07:26PM

17
#2559 - Joe Fox / @mrWumpus

08/17/2013 at 04:28AM

17
#2560 - Michael Galanakis / @galadude

08/18/2013 at 09:40AM

17
#2561 - engy / @engydmw

09/02/2013 at 06:37PM

17
#2562 - 오종빈(Jongbin Oh) / @ohyecloudy

09/11/2013 at 09:35AM

17
#2563 - Bailey Ling / @blingcoder

09/12/2013 at 03:48AM

17
#2564 - kimmi / @kimspindel

09/21/2013 at 10:51PM

17
#2565 - George GZ Zakhour / @AlloGeorge

09/29/2013 at 02:47PM

17
#2566 - quadybohme / @quadybohme

10/04/2013 at 08:39PM

17
#2567 - Marcin Górnik / @gornikm

10/06/2013 at 05:35PM

17
#2568 - SpaceLi / @spacelis

10/12/2013 at 07:01AM

17
#2569 - Dimitar Dimitrov / @kurkale6ka

10/16/2013 at 10:08AM

17
#2570 - tcarobruce / @tcarobruce

10/22/2013 at 04:13PM

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

10/28/2013 at 11:24AM

17
#2572 - Paul Lambda / @PaulLambda1

10/28/2013 at 12:49PM

17
#2573 - Marcin Katulski / @marcink79

11/04/2013 at 05:49AM

17
#2574 - Kerry Buckley / @kerryb

11/05/2013 at 02:11PM

17
#2575 - temp test / @temptest1234567

11/06/2013 at 04:49AM

17
#2576 - Erik Broman / @er1kb

11/11/2013 at 10:57PM

17
#2577 - Munen / @preek

11/13/2013 at 02:51PM

17
#2578 - Robin / @randuin

11/15/2013 at 06:41AM

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

11/15/2013 at 05:49PM

17
#2580 - Jason Wolf / @zephyr_wolf

11/19/2013 at 01:20PM