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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 35 remaining solutions by signing in and submitting your own entry
#36 zmf_tim / @zmf_tim - Score: 307 - 05/31/21 @ 20:06
:set pas<Tab><CR>o         #<CR>        # #<CR>       #   #<CR>      #     #<CR>     #       #<CR>    #         #<CR>   #           #<CR>  #             #<CR> #               #<CR>#This is some text#<CR> #               #<CR>  #             #<CR>   #           #<CR>    #         #<CR>     #       #<CR>      #     #<CR>       #   #<CR>        # #<CR>         #<Esc>ggddZZ

0 comments


Created by: @Kyle98675198

36 active golfers, 133 entries

Leaderboard (lowest score wins):
95
#31 - AAbraxas / @AAbraxas1

07/13/2021 at 08:29PM

132
#32 - George Sanewashington / @sekolyn

06/02/2021 at 07:54AM

149
#33 - Sylvain Dangin / @Sylvaner03

06/01/2021 at 07:41PM

188
#34 - Ska / @skaa42

07/16/2021 at 07:08PM

226
#35 - Clmi / @c_decaf

08/06/2021 at 06:35AM

307
#36 - zmf_tim / @zmf_tim

05/31/2021 at 08:06PM