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

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

75 active golfers, 337 entries

Solutions by @vuems2win:
30
#36 - vuems / @vuems2win

11/19/2022 at 01:25PM

31
#>37 - vuems / @vuems2win

11/19/2022 at 01:08PM

32
#>38 - vuems / @vuems2win

11/19/2022 at 01:01PM

33
#>40 - vuems / @vuems2win

11/19/2022 at 12:59PM

38
#>42 - vuems / @vuems2win

11/19/2022 at 12:55PM

39
#>43 - vuems / @vuems2win

11/19/2022 at 12:39PM

40
#>45 - vuems / @vuems2win

11/19/2022 at 12:21PM

43
#>48 - vuems / @vuems2win

11/19/2022 at 12:10PM

44
#>49 - vuems / @vuems2win

11/19/2022 at 12:02PM

45
#>50 - vuems / @vuems2win

11/19/2022 at 11:55AM

53
#>54 - vuems / @vuems2win

11/19/2022 at 11:43AM

54
#>55 - vuems / @vuems2win

11/19/2022 at 11:29AM

55
#>55 - vuems / @vuems2win

11/19/2022 at 11:13AM

60
#>58 - vuems / @vuems2win

11/19/2022 at 11:01AM

61
#>59 - vuems / @vuems2win

11/18/2022 at 02:02AM

161
#>69 - vuems / @vuems2win

11/18/2022 at 01:20AM

264
#>72 - vuems / @vuems2win

11/18/2022 at 12:59AM

300
#>73 - vuems / @vuems2win

11/18/2022 at 12:30AM