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

62 active golfers, 266 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

27
#9 - Bangash💉💉 / @DevotionGeo

10/10/2022 at 02:11PM

27
#10 - Topvimgolf Score / @topvimgolfscore

10/12/2022 at 10:24AM

28
#11 - Jon Krause / @jkrause314

06/01/2021 at 03:58AM

28
#12 - Smylers / @Smylers2

06/01/2021 at 03:36PM

28
#13 - quiet_doi / @quiet_doi

06/11/2021 at 11:34PM

28
#14 - sap / @sap38838304

06/27/2021 at 10:34PM

28
#15 - Georg Bökman / @BokmanGeorg

07/02/2021 at 10:18AM

28
#16 - 悟史 / @A1OBJTxN5fTg5EJ

07/11/2021 at 05:11AM

28
#17 - Michael Carey / @Mick_Carey

08/11/2021 at 10:19AM

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

08/18/2021 at 07:27AM

28
#19 - Vim Golfer / @VimGolfer20

08/23/2021 at 11:01AM

28
#20 - Peter Nyssen / @PeterNyssen

06/24/2022 at 08:55AM

30
#21 - Peter Salvi / @salvipeter

06/01/2021 at 10:28AM

30
#22 - Ceda EI / @ceda_ei

06/01/2021 at 02:34PM

30
#23 - Tuure / @tuure_p

06/04/2021 at 01:07AM

30
#24 - e1mnos / @e1mnos

08/10/2021 at 11:02AM

30
#25 - 深窓の令嬢@ドクター / @arbino1031

12/15/2021 at 01:28PM

30
#26 - phazy / @phazy_x86

01/21/2022 at 07:27PM

30
#27 - Youssef Magdy / @youssef_magdy29

04/29/2022 at 02:38AM

30
#28 - vuems / @vuems2win

11/19/2022 at 01:25PM

31
#29 - BowTiedCoin / @BowTiedCoin

01/24/2022 at 12:26PM

32
#30 - Ferran / @dillunsos

07/29/2021 at 01:30PM