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

3561 active golfers, 11449 entries

Leaderboard (lowest score wins):
18
#2641 - Luke Parsons / @lukeparsons

12/28/2017 at 07:09PM

18
#2642 - Suphawit Getmark / @SGetmark

01/18/2018 at 04:58PM

18
#2643 - TpouHuK / @TpouHuK_

01/26/2018 at 07:24PM

18
#2644 - tapio / @gncnaxb

02/27/2018 at 12:56PM

18
#2645 - Tim / @timothyscosta

03/08/2018 at 05:25AM

18
#2646 - Meda Marisela / @LongbowMeda

03/12/2018 at 12:51AM

18
#2647 - Austin Ware / @AustinWare17

03/12/2018 at 06:23PM

18
#2648 - Patrick Haugh / @haughpj

03/14/2018 at 11:55PM

18
#2649 - Oleg Skillup / @skill_up

03/20/2018 at 07:34PM

18
#2650 - Tim Boooo-ckley 👻 / @timbucki

03/27/2018 at 02:36PM

18
#2651 - wwnbb1 / @wwnbb1

05/02/2018 at 04:10PM

18
#2652 - Jonathan King / @JonKingUsername

05/03/2018 at 05:06PM

18
#2653 - Sean Earle / @Hell_Rok

05/04/2018 at 06:38AM

18
#2654 - Robopengwin / @robopengwin

05/06/2018 at 05:01AM

18
#2655 - Jonathan Frias / @jonh_pato

05/08/2018 at 08:12PM

18
#2656 - miracle / @miracle73970854

05/12/2018 at 02:12AM

18
#2657 - Don Nguyen / @baodon2703

05/25/2018 at 11:48AM

18
#2658 - William Hamilton / @BobHamiltonijk

05/26/2018 at 04:05PM

18
#2659 - Vimg / @Vimg10

06/06/2018 at 08:33PM

18
#2660 - mass / @mass256

06/20/2018 at 08:49AM

18
#2661 - Ryan Bas / @ryanbas21

06/26/2018 at 04:59PM

18
#2662 - leesinplus(けいいち) / @leesin_plus

06/29/2018 at 08:41AM

18
#2663 - みやざわ / @we1IRsyN6775t4H

07/01/2018 at 10:48AM

18
#2664 - Xxax / @Xxax

07/02/2018 at 12:41PM

18
#2665 - Artsiom Kashkou / @pochka15

07/10/2018 at 10:19AM

18
#2666 - Kevin Cooler / @KevinCooler

08/10/2018 at 01:06AM

18
#2667 - 王韋勝 / @wilson85071

08/18/2018 at 03:23PM

18
#2668 - Charles Sun / @charles_sun90

08/26/2018 at 03:54AM

18
#2669 - 安藤 / @andou2106

09/03/2018 at 02:51PM

18
#2670 - John Oleksowicz / @JohnOlek

10/05/2018 at 06:25PM