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 @JeanGeo20504212:

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

41 active golfers, 160 entries

Solutions by @JeanGeo20504212:
27
#6 - Jean George / @JeanGeo20504212

10/17/2021 at 09:28PM

30
#>19 - Jean George / @JeanGeo20504212

10/17/2021 at 09:08PM

34
#>22 - Jean George / @JeanGeo20504212

10/17/2021 at 08:56PM

40
#>26 - Jean George / @JeanGeo20504212

10/17/2021 at 08:40PM

54
#>31 - Jean George / @JeanGeo20504212

10/17/2021 at 08:25PM