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

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

70 active golfers, 301 entries

Solutions by @Smylers2:
28
#14 - Smylers / @Smylers2

06/01/2021 at 03:36PM

30
#>27 - Smylers / @Smylers2

06/01/2021 at 03:33PM

31
#>33 - Smylers / @Smylers2

06/01/2021 at 03:29PM

33
#>35 - Smylers / @Smylers2

06/01/2021 at 03:23PM

34
#>37 - Smylers / @Smylers2

06/01/2021 at 03:24PM