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

71 active golfers, 305 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
#>21 - Hugh / @haquaman

10/08/2021 at 09:30AM

30
#>29 - Hugh / @haquaman

10/08/2021 at 09:24AM

32
#>35 - Hugh / @haquaman

10/08/2021 at 09:13AM

36
#>38 - Hugh / @haquaman

10/08/2021 at 09:12AM

40
#>42 - Hugh / @haquaman

10/08/2021 at 09:03AM

41
#>44 - Hugh / @haquaman

10/08/2021 at 08:53AM

48
#>49 - Hugh / @haquaman

10/08/2021 at 08:35AM

50
#>49 - Hugh / @haquaman

10/08/2021 at 08:31AM

111
#>63 - Hugh / @haquaman

10/08/2021 at 08:11AM

124
#>63 - Hugh / @haquaman

10/08/2021 at 08:02AM

136
#>64 - Hugh / @haquaman

10/08/2021 at 07:44AM

153
#>66 - Hugh / @haquaman

10/08/2021 at 05:52AM

540
#>71 - Hugh / @haquaman

10/08/2021 at 07:39AM