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

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

72 active golfers, 314 entries

Solutions by @BowTiedCoin:
31
#35 - BowTiedCoin / @BowTiedCoin

01/24/2022 at 12:26PM

32
#>36 - BowTiedCoin / @BowTiedCoin

01/24/2022 at 12:24PM

38
#>39 - BowTiedCoin / @BowTiedCoin

01/24/2022 at 12:23PM

39
#>41 - BowTiedCoin / @BowTiedCoin

01/24/2022 at 12:21PM

59
#>54 - BowTiedCoin / @BowTiedCoin

01/24/2022 at 12:10PM