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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
17
#2551 - Forrest Zeisler / @fzeisler

07/08/2013 at 07:55PM

17
#2552 - RobertT / @techrt2050

07/10/2013 at 01:17AM

17
#2553 - Christopher Bahr / @bahrware

07/11/2013 at 03:46AM

17
#2554 - Austin Quan / @n00blebowl

07/31/2013 at 12:48AM

17
#2555 - Joel Trottier-Hebert / @JoelTHebert

08/14/2013 at 07:26PM

17
#2556 - Joe Fox / @mrWumpus

08/17/2013 at 04:28AM

17
#2557 - Michael Galanakis / @galadude

08/18/2013 at 09:40AM

17
#2558 - engy / @engydmw

09/02/2013 at 06:37PM

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

09/11/2013 at 09:35AM

17
#2560 - Bailey Ling / @blingcoder

09/12/2013 at 03:48AM

17
#2561 - kimmi / @kimspindel

09/21/2013 at 10:51PM

17
#2562 - George GZ Zakhour / @AlloGeorge

09/29/2013 at 02:47PM

17
#2563 - quadybohme / @quadybohme

10/04/2013 at 08:39PM

17
#2564 - Marcin Górnik / @gornikm

10/06/2013 at 05:35PM

17
#2565 - SpaceLi / @spacelis

10/12/2013 at 07:01AM

17
#2566 - Dimitar Dimitrov / @kurkale6ka

10/16/2013 at 10:08AM

17
#2567 - tcarobruce / @tcarobruce

10/22/2013 at 04:13PM

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

10/28/2013 at 11:24AM

17
#2569 - Paul Lambda / @PaulLambda1

10/28/2013 at 12:49PM

17
#2570 - Marcin Katulski / @marcink79

11/04/2013 at 05:49AM

17
#2571 - Kerry Buckley / @kerryb

11/05/2013 at 02:11PM

17
#2572 - temp test / @temptest1234567

11/06/2013 at 04:49AM

17
#2573 - Erik Broman / @er1kb

11/11/2013 at 10:57PM

17
#2574 - Munen / @preek

11/13/2013 at 02:51PM

17
#2575 - Robin / @randuin

11/15/2013 at 06:41AM

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

11/15/2013 at 05:49PM

17
#2577 - Jason Wolf / @zephyr_wolf

11/19/2013 at 01:20PM

17
#2578 - Taku Okawa / @t4ku

11/23/2013 at 01:00PM

17
#2579 - JustGage / @JustGage

11/25/2013 at 03:51PM

17
#2580 - NIKAIDO Amane / @a2kaido

11/30/2013 at 03:00AM