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

46 active golfers, 191 entries

Leaderboard (lowest score wins):
45
#31 - Phil Hord / @phord

10/19/2021 at 11:08PM

47
#32 - deusthe / @deusthe91

12/21/2021 at 08:21AM

53
#33 - ~~~ / @5AXZmAwcmUg0fOO

06/01/2021 at 12:56AM

53
#34 - migoo / @migoo00668679

10/17/2021 at 03:52PM

60
#35 - Kyle / @Kyle98675198

05/31/2021 at 06:24AM

62
#36 - POSIX / @po6ix

01/08/2022 at 05:21AM

73
#37 - Scott Berger / @scottberger

09/23/2021 at 08:00PM

84
#38 - ボードゲーム! / @boardgame_JP

07/17/2021 at 01:43AM

84
#39 - Bspammer / @Bspammer

08/14/2021 at 02:20AM

95
#40 - AAbraxas / @AAbraxas1

07/13/2021 at 08:29PM

132
#41 - George Sanewashington / @sekolyn

06/02/2021 at 07:54AM

149
#42 - Sylvain Dangin / @Sylvaner03

06/01/2021 at 07:41PM

184
#43 - Nougatine Naja / @NougatineNaja

12/27/2021 at 02:34PM

188
#44 - Ska / @skaa42

07/16/2021 at 07:08PM

226
#45 - Clmi / @c_decaf

08/06/2021 at 06:35AM

307
#46 - zmf_tim / @zmf_tim

05/31/2021 at 08:06PM