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

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

72 active golfers, 314 entries

Solutions by @phazy_x86:
30
#32 - phazy / @phazy_x86

01/21/2022 at 07:27PM

31
#>34 - phazy / @phazy_x86

01/21/2022 at 07:09PM

32
#>36 - phazy / @phazy_x86

01/21/2022 at 06:06PM

41
#>45 - phazy / @phazy_x86

01/21/2022 at 05:02PM

43
#>46 - phazy / @phazy_x86

01/21/2022 at 04:59PM

53
#>52 - phazy / @phazy_x86

01/21/2022 at 04:54PM

57
#>54 - phazy / @phazy_x86

01/21/2022 at 04:34PM

63
#>58 - phazy / @phazy_x86

01/21/2022 at 04:32PM