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

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

61 active golfers, 265 entries

Solutions by @PeterNyssen:
28
#20 - Peter Nyssen / @PeterNyssen

06/24/2022 at 08:55AM

29
#>20 - Peter Nyssen / @PeterNyssen

06/24/2022 at 08:50AM

31
#>29 - Peter Nyssen / @PeterNyssen

06/24/2022 at 06:49AM

36
#>33 - Peter Nyssen / @PeterNyssen

06/24/2022 at 06:44AM

40
#>37 - Peter Nyssen / @PeterNyssen

06/23/2022 at 09:10PM

45
#>40 - Peter Nyssen / @PeterNyssen

06/23/2022 at 09:02PM

47
#>42 - Peter Nyssen / @PeterNyssen

06/23/2022 at 08:40PM

51
#>42 - Peter Nyssen / @PeterNyssen

06/23/2022 at 08:38PM

116
#>53 - Peter Nyssen / @PeterNyssen

06/23/2022 at 07:45PM