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

3732 active golfers, 12075 entries

Leaderboard (lowest score wins):
18
#2791 - Don Nguyen / @baodon2703

05/25/2018 at 11:48AM

18
#2792 - William Hamilton / @BobHamiltonijk

05/26/2018 at 04:05PM

18
#2793 - Vimg / @Vimg10

06/06/2018 at 08:33PM

18
#2794 - mass / @mass256

06/20/2018 at 08:49AM

18
#2795 - Ryan Bas / @ryanbas21

06/26/2018 at 04:59PM

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

06/29/2018 at 08:41AM

18
#2797 - みやざわ / @we1IRsyN6775t4H

07/01/2018 at 10:48AM

18
#2798 - Xxax / @Xxax

07/02/2018 at 12:41PM

18
#2799 - Artsiom Kashkou / @pochka15

07/10/2018 at 10:19AM

18
#2800 - Kevin Cooler / @KevinCooler

08/10/2018 at 01:06AM

18
#2801 - 王韋勝 / @wilson85071

08/18/2018 at 03:23PM

18
#2802 - Charles Sun / @charles_sun90

08/26/2018 at 03:54AM

18
#2803 - 安藤 / @andou2106

09/03/2018 at 02:51PM

18
#2804 - John Oleksowicz / @JohnOlek

10/05/2018 at 06:25PM

18
#2805 - Youm / @Youmslinky

10/30/2018 at 11:16PM

18
#2806 - Sxcy / @SxcyX

11/05/2018 at 03:43PM

18
#2807 - Chris Maher / @chrismaherthe

11/15/2018 at 02:18AM

18
#2808 - editor3D / @editor3D

11/25/2018 at 07:15PM

18
#2809 - Performa / @performa6400

11/27/2018 at 05:21PM

18
#2810 - xiong yuwu / @xiongyuwu

12/26/2018 at 02:38PM

18
#2811 - Grorco / @grorco

01/07/2019 at 04:28PM

18
#2812 - John Smith / @JohnSmi14480159

01/09/2019 at 11:24PM

18
#2813 - 강현 / @Applesquiz

01/21/2019 at 02:08PM

18
#2814 - lofoneax / @lofoneax

01/23/2019 at 06:15AM

18
#2815 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 07:48AM

18
#2816 - Isaak Meier / @IsaakMeier

03/13/2019 at 03:36PM

18
#2817 - Reportados123 / @reportados123

06/19/2019 at 07:22PM

18
#2818 - Captain Proton / @CaptainProton5

08/01/2019 at 02:23PM

18
#2819 - Charlie Pai / @charlie_pai

08/22/2019 at 11:38PM

18
#2820 - José / @AngelGaldamez

08/26/2019 at 03:24AM