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 72 remaining solutions by signing in and submitting your own entry
#73 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

73 active golfers, 322 entries

Leaderboard (lowest score wins):
84
#61 - ボードゲーム! / @boardgame_JP

07/17/2021 at 01:43AM

84
#62 - Bspammer / @Bspammer

08/14/2021 at 02:20AM

84
#63 - Johnnie Walker / @Johnnie11414500

04/15/2022 at 05:10PM

88
#64 - z00master / @z00master

08/03/2022 at 04:10PM

95
#65 - AAbraxas / @AAbraxas1

07/13/2021 at 08:29PM

132
#66 - George Sanewashington / @sekolyn

06/02/2021 at 07:54AM

145
#67 - Justin Haaheim / @justinhaaheim

03/02/2022 at 05:38AM

149
#68 - Sylvain Dangin / @Sylvaner03

06/01/2021 at 07:41PM

184
#69 - Nougatine Naja / @NougatineNaja

12/27/2021 at 02:34PM

188
#70 - Ska / @skaa42

07/16/2021 at 07:08PM

226
#71 - Clmi / @c_decaf

08/06/2021 at 06:35AM

291
#72 - oleg / @oleg12573505

01/29/2022 at 03:24PM

307
#73 - zmf_tim / @zmf_tim

05/31/2021 at 08:06PM