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

3536 active golfers, 11370 entries

Leaderboard (lowest score wins):
20
#2941 - Mohideen Imran Khan / @miknotes

04/12/2018 at 10:00AM

20
#2942 - Héctor Ramón / @hecrj

05/03/2018 at 04:11PM

20
#2943 - tue2truong / @tue2truong1

05/25/2018 at 11:56PM

20
#2944 - Boda / @Boda47528108

06/04/2018 at 12:44PM

20
#2945 - 권순재 / @FhOrZyV4MhUNXQx

06/23/2018 at 02:55AM

20
#2946 - 박주영 / @xhgnVrQ6uUJOTnB

06/29/2018 at 08:17AM

20
#2947 - eL Bunda / @elbund4

07/01/2018 at 01:32PM

20
#2948 - 无眠的夜狐狸 / @fox_ni

08/16/2018 at 01:44PM

20
#2949 - Cam Smith / @Comradesmith

08/22/2018 at 08:37AM

20
#2950 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 09:26AM

20
#2951 - ISUCON出る人居ませんか / @mactkg

08/30/2018 at 11:31AM

20
#2952 - Ali Mostafavi / @Ali_Mostafavi_

09/08/2018 at 01:27PM

20
#2953 - Di Peng / @DCodier

10/31/2018 at 05:17AM

20
#2954 - Luis Rodriguez / @luisthecoder

11/12/2018 at 01:01AM

20
#2955 - steve N ӾlvЮ / @xlvio

11/18/2018 at 04:20PM

20
#2956 - LucaSimplon / @LucaSimplon

11/18/2018 at 08:13PM

20
#2957 - Bennett / @bennettbackward

12/18/2018 at 02:32PM

20
#2958 - wrglprmft / @wrglprmft

01/19/2019 at 09:12PM

20
#2959 - Ronnie Kon / @KonRonnie

01/21/2019 at 01:55AM

20
#2960 - Charles Brossollet / @Tcharlss

03/02/2019 at 05:36PM

20
#2961 - royaso / @royaso

04/13/2019 at 04:30AM

20
#2962 - john ford / @johnfor65634499

05/23/2019 at 06:13PM

20
#2963 - Paul Schaefer / @schaeferpp

05/24/2019 at 02:55PM

20
#2964 - soundscope / @__soundscope__

07/20/2019 at 01:51PM

20
#2965 - Michael Parrott / @MikeParrott94

10/06/2019 at 01:41PM

20
#2966 - Blu1Je7Vo1HyeMa1 / @Je7Hye

11/14/2019 at 02:30PM

21
#2967 - christoph hermann / @schtoeffel

05/20/2013 at 07:57AM

21
#2968 - Vedran Zakanj / @vzakanj

05/22/2013 at 06:50PM

21
#2969 - Aaron Bieber / @aaronbieber

06/02/2013 at 01:49PM

21
#2970 - Ker / @alin_ker

06/12/2013 at 02:44PM