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

16 active golfers, 40 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

30
#6 - Peter Salvi / @salvipeter

06/01/2021 at 10:28AM

30
#7 - Ceda EI / @ceda_ei

06/01/2021 at 02:34PM

30
#8 - Tuure / @tuure_p

06/04/2021 at 01:07AM

33
#9 - Youngchan Lee / @edwardycl

06/03/2021 at 05:50AM

35
#10 - grsh / @girish_i_am

06/03/2021 at 07:11PM

44
#11 - towc / @MateiCopot

06/02/2021 at 08:26AM

53
#12 - ~~~ / @5AXZmAwcmUg0fOO

06/01/2021 at 12:56AM

60
#13 - Kyle / @Kyle98675198

05/31/2021 at 06:24AM

132
#14 - serial experiments gucci mane / @sekolyn

06/02/2021 at 07:54AM

149
#15 - Sylvain Dangin / @Sylvaner03

06/01/2021 at 07:41PM

307
#16 - zmf_tim / @zmf_tim

05/31/2021 at 08:06PM