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 by @e1mnos:

Unlock 6 remaining solutions by signing in and submitting your own entry
Created by: @Kyle98675198

36 active golfers, 133 entries

Solutions by @e1mnos:
30
#17 - e1mnos / @e1mnos

08/10/2021 at 11:02AM

31
#>17 - e1mnos / @e1mnos

08/10/2021 at 11:00AM

32
#>18 - e1mnos / @e1mnos

08/10/2021 at 09:14AM

38
#>21 - e1mnos / @e1mnos

08/10/2021 at 09:09AM

40
#>23 - e1mnos / @e1mnos

08/10/2021 at 08:53AM

48
#>26 - e1mnos / @e1mnos

08/10/2021 at 08:44AM