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

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

70 active golfers, 301 entries

Solutions by @BokmanGeorg:
28
#17 - Georg Bökman / @BokmanGeorg

07/02/2021 at 10:18AM

30
#>28 - Georg Bökman / @BokmanGeorg

07/02/2021 at 09:51AM

34
#>37 - Georg Bökman / @BokmanGeorg

07/02/2021 at 08:42AM

38
#>38 - Georg Bökman / @BokmanGeorg

06/30/2021 at 04:03PM

50
#>49 - Georg Bökman / @BokmanGeorg

06/30/2021 at 03:48PM

72
#>56 - Georg Bökman / @BokmanGeorg

06/30/2021 at 01:56PM