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

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

36 active golfers, 133 entries

Solutions by @RomanPrivalov:
27
#4 - Roman Privalov / @RomanPrivalov

09/06/2021 at 11:22PM

28
#>13 - Roman Privalov / @RomanPrivalov

09/06/2021 at 11:04PM

28
#>13 - Roman Privalov / @RomanPrivalov

09/06/2021 at 11:17PM

30
#>17 - Roman Privalov / @RomanPrivalov

09/06/2021 at 10:47PM

41
#>25 - Roman Privalov / @RomanPrivalov

09/06/2021 at 10:20PM