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

60 active golfers, 260 entries

Leaderboard (lowest score wins):
33
#31 - Youngchan Lee / @edwardycl

06/03/2021 at 05:50AM

33
#32 - Monte Creasor / @montecreasor

08/20/2021 at 02:47AM

35
#33 - grsh / @girish_i_am

06/03/2021 at 07:11PM

38
#34 - Andy Tockman / @atckmn

07/16/2022 at 02:51AM

39
#35 - Bruce Lee / @BruceLeeIII

07/23/2021 at 07:47PM

40
#36 - Louis Gerard / @louisgerardd

06/27/2021 at 08:20AM

40
#37 - DC1RW / @monokai3

08/23/2021 at 10:12AM

41
#38 - Peter Pandorum / @PeterPandorum

08/07/2021 at 08:56PM

44
#39 - towc / @MateiCopot

06/02/2021 at 08:26AM

45
#40 - Phil Hord / @phord

10/19/2021 at 11:08PM

47
#41 - deusthe / @deusthe91

12/21/2021 at 08:21AM

53
#42 - ~~~ / @5AXZmAwcmUg0fOO

06/01/2021 at 12:56AM

53
#43 - migoo / @migoo00668679

10/17/2021 at 03:52PM

54
#44 - MortalityCure / @MortalityCure

06/07/2022 at 05:11PM

60
#45 - Kyle / @Kyle98675198

05/31/2021 at 06:24AM

62
#46 - POSIX / @po6ix

01/08/2022 at 05:21AM

73
#47 - Scott Berger / @scottberger

09/23/2021 at 08:00PM

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

07/17/2021 at 01:43AM

84
#49 - Bspammer / @Bspammer

08/14/2021 at 02:20AM

84
#50 - Johnnie Walker / @Johnnie11414500

04/15/2022 at 05:10PM

88
#51 - z00master / @z00master

08/03/2022 at 04:10PM

95
#52 - AAbraxas / @AAbraxas1

07/13/2021 at 08:29PM

132
#53 - George Sanewashington / @sekolyn

06/02/2021 at 07:54AM

145
#54 - Justin Haaheim / @justinhaaheim

03/02/2022 at 05:38AM

149
#55 - Sylvain Dangin / @Sylvaner03

06/01/2021 at 07:41PM

184
#56 - Nougatine Naja / @NougatineNaja

12/27/2021 at 02:34PM

188
#57 - Ska / @skaa42

07/16/2021 at 07:08PM

226
#58 - Clmi / @c_decaf

08/06/2021 at 06:35AM

291
#59 - oleg / @oleg12573505

01/29/2022 at 03:24PM

307
#60 - zmf_tim / @zmf_tim

05/31/2021 at 08:06PM