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

24 active golfers, 75 entries

Leaderboard (lowest score wins):
27
#1 - John Braxler / @braxler

06/01/2021 at 01:42PM

27
#2 - Miłosz Łakomy / @foobar01123

06/02/2021 at 02:30PM

28
#3 - Jon Krause / @jkrause314

06/01/2021 at 03:58AM

28
#4 - Smylers / @Smylers2

06/01/2021 at 03:36PM

28
#5 - quiet_doi / @quiet_doi

06/11/2021 at 11:34PM

28
#6 - sap / @sap38838304

06/27/2021 at 10:34PM

28
#7 - Georg Bökman / @BokmanGeorg

07/02/2021 at 10:18AM

28
#8 - 悟史 / @A1OBJTxN5fTg5EJ

07/11/2021 at 05:11AM

30
#9 - Peter Salvi / @salvipeter

06/01/2021 at 10:28AM

30
#10 - Ceda EI / @ceda_ei

06/01/2021 at 02:34PM

30
#11 - Tuure / @tuure_p

06/04/2021 at 01:07AM

33
#12 - Youngchan Lee / @edwardycl

06/03/2021 at 05:50AM

35
#13 - grsh / @girish_i_am

06/03/2021 at 07:11PM

39
#14 - Bruce Lee / @BruceLeeIII

07/23/2021 at 07:47PM

40
#15 - Louis Gerard / @louisgerardd

06/27/2021 at 08:20AM

44
#16 - towc / @MateiCopot

06/02/2021 at 08:26AM

53
#17 - ~~~ / @5AXZmAwcmUg0fOO

06/01/2021 at 12:56AM

60
#18 - Kyle / @Kyle98675198

05/31/2021 at 06:24AM

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

07/17/2021 at 01:43AM

95
#20 - AAbraxas / @AAbraxas1

07/13/2021 at 08:29PM

132
#21 - George Sanewashington / @sekolyn

06/02/2021 at 07:54AM

149
#22 - Sylvain Dangin / @Sylvaner03

06/01/2021 at 07:41PM

188
#23 - Ska / @skaa42

07/16/2021 at 07:08PM

307
#24 - zmf_tim / @zmf_tim

05/31/2021 at 08:06PM