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

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

75 active golfers, 337 entries

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

06/02/2021 at 02:30PM

28
#>17 - Miłosz Łakomy / @foobar01123

06/02/2021 at 02:25PM

30
#>30 - Miłosz Łakomy / @foobar01123

06/02/2021 at 02:21PM

31
#>36 - Miłosz Łakomy / @foobar01123

06/01/2021 at 07:05AM

37
#>41 - Miłosz Łakomy / @foobar01123

06/01/2021 at 07:01AM