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 9v0060b47a55000000000207

Create a diamond comment

Encapsulate the text in a diamond pattern.

Start file
This is some text
End file
         #
        # #
       #   #
      #     #
     #       #
    #         #
   #           #
  #             #
 #               #
#This is some text#
 #               #
  #             #
   #           #
    #         #
     #       #
      #     #
       #   #
        # #
         #

View Diff

1c1,19
< This is some text
---
>          #
>         # #
>        #   #
>       #     #
>      #       #
>     #         #
>    #           #
>   #             #
>  #               #
> #This is some text#
>  #               #
>   #             #
>    #           #
>     #         #
>      #       #
>       #     #
>        #   #
>         # #
>          #

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 52 remaining solutions by signing in and submitting your own entry
#53 zmf_tim / @zmf_tim - Score: 307 - 05/31/21 @ 20:06
:set pas<Tab><CR>o         #<CR>        # #<CR>       #   #<CR>      #     #<CR>     #       #<CR>    #         #<CR>   #           #<CR>  #             #<CR> #               #<CR>#This is some text#<CR> #               #<CR>  #             #<CR>   #           #<CR>    #         #<CR>     #       #<CR>      #     #<CR>       #   #<CR>        # #<CR>         #<Esc>ggddZZ

0 comments


Created by: @Kyle98675198

53 active golfers, 220 entries

Leaderboard (lowest score wins):
27
#1 - John Braxler / @braxler

06/01/2021 at 01:42PM

27
#2 - Miłosz Łakomy / @foobar01123

06/02/2021 at 02:30PM

27
#3 - T. Arch / @TArch76864215

08/28/2021 at 05:02AM

27
#4 - Roman Privalov / @RomanPrivalov

09/06/2021 at 11:22PM

27
#5 - Hugh / @haquaman

10/08/2021 at 09:58AM

27
#6 - Jean George / @JeanGeo20504212

10/17/2021 at 09:28PM

27
#7 - Sammit / @somemeatjain

01/25/2022 at 04:55PM

27
#8 - Robberechts Arne / @ArneRobberechts

05/23/2022 at 12:48PM

28
#9 - Jon Krause / @jkrause314

06/01/2021 at 03:58AM

28
#10 - Smylers / @Smylers2

06/01/2021 at 03:36PM

28
#11 - quiet_doi / @quiet_doi

06/11/2021 at 11:34PM

28
#12 - sap / @sap38838304

06/27/2021 at 10:34PM

28
#13 - Georg Bökman / @BokmanGeorg

07/02/2021 at 10:18AM

28
#14 - 悟史 / @A1OBJTxN5fTg5EJ

07/11/2021 at 05:11AM

28
#15 - Michael Carey / @Mick_Carey

08/11/2021 at 10:19AM

28
#16 - Trần Chí Thiện / @tecix

08/18/2021 at 07:27AM

28
#17 - Vim Golfer / @VimGolfer20

08/23/2021 at 11:01AM

30
#18 - Peter Salvi / @salvipeter

06/01/2021 at 10:28AM

30
#19 - Ceda EI / @ceda_ei

06/01/2021 at 02:34PM

30
#20 - Tuure / @tuure_p

06/04/2021 at 01:07AM

30
#21 - e1mnos / @e1mnos

08/10/2021 at 11:02AM

30
#22 - 深窓の令嬢@百合厨 / @arbino1031

12/15/2021 at 01:28PM

30
#23 - phazy / @phazy_x86

01/21/2022 at 07:27PM

30
#24 - Youssef Magdy / @youssef_magdy29

04/29/2022 at 02:38AM

31
#25 - BowTiedCoin / @BowTiedCoin

01/24/2022 at 12:26PM

32
#26 - Ferran / @dillunsos

07/29/2021 at 01:30PM

33
#27 - Youngchan Lee / @edwardycl

06/03/2021 at 05:50AM

33
#28 - Monte Creasor / @montecreasor

08/20/2021 at 02:47AM

35
#29 - grsh / @girish_i_am

06/03/2021 at 07:11PM

39
#30 - Bruce Lee / @BruceLeeIII

07/23/2021 at 07:47PM