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

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

75 active golfers, 337 entries

Solutions by @sap38838304:
28
#19 - sap / @sap38838304

06/27/2021 at 10:34PM

28
#>19 - sap / @sap38838304

06/27/2021 at 10:37PM

30
#>31 - sap / @sap38838304

06/27/2021 at 10:33PM

33
#>39 - sap / @sap38838304

06/27/2021 at 10:32PM

35
#>41 - sap / @sap38838304

06/27/2021 at 10:30PM

40
#>44 - sap / @sap38838304

06/27/2021 at 10:28PM

43
#>48 - sap / @sap38838304

06/27/2021 at 10:26PM

52
#>52 - sap / @sap38838304

06/27/2021 at 10:25PM

60
#>58 - sap / @sap38838304

06/27/2021 at 10:22PM

113
#>66 - sap / @sap38838304

06/27/2021 at 09:42PM