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

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

40 active golfers, 158 entries

Solutions by @haquaman:
27
#5 - Hugh / @haquaman

10/08/2021 at 09:58AM

27
#>5 - Hugh / @haquaman

10/08/2021 at 10:00AM

28
#>15 - Hugh / @haquaman

10/08/2021 at 09:30AM

30
#>19 - Hugh / @haquaman

10/08/2021 at 09:24AM

32
#>20 - Hugh / @haquaman

10/08/2021 at 09:13AM

36
#>23 - Hugh / @haquaman

10/08/2021 at 09:12AM

40
#>26 - Hugh / @haquaman

10/08/2021 at 09:03AM

41
#>27 - Hugh / @haquaman

10/08/2021 at 08:53AM

48
#>28 - Hugh / @haquaman

10/08/2021 at 08:35AM

50
#>28 - Hugh / @haquaman

10/08/2021 at 08:31AM

111
#>35 - Hugh / @haquaman

10/08/2021 at 08:11AM

124
#>35 - Hugh / @haquaman

10/08/2021 at 08:02AM

136
#>36 - Hugh / @haquaman

10/08/2021 at 07:44AM

153
#>37 - Hugh / @haquaman

10/08/2021 at 05:52AM

540
#>40 - Hugh / @haquaman

10/08/2021 at 07:39AM