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

66 active golfers, 271 entries

Leaderboard (lowest score wins):
32
#31 - Ferran / @dillunsos

07/29/2021 at 01:30PM

33
#32 - Youngchan Lee / @edwardycl

06/03/2021 at 05:50AM

33
#33 - Monte Creasor / @montecreasor

08/20/2021 at 02:47AM

35
#34 - grsh / @girish_i_am

06/03/2021 at 07:11PM

38
#35 - Andy Tockman / @atckmn

07/16/2022 at 02:51AM

39
#36 - Bruce Lee / @BruceLeeIII

07/23/2021 at 07:47PM

40
#37 - Louis Gerard / @louisgerardd

06/27/2021 at 08:20AM

40
#38 - DC1RW / @monokai3

08/23/2021 at 10:12AM

40
#39 - RosaTryp / @RosaTryp

03/20/2023 at 05:39PM

41
#40 - Peter Pandorum / @PeterPandorum

08/07/2021 at 08:56PM

41
#41 - steve / @steve35773420

04/26/2023 at 11:34PM

44
#42 - towc / @MateiCopot

06/02/2021 at 08:26AM

45
#43 - Phil Hord / @phord

10/19/2021 at 11:08PM

46
#44 - Timon Jam Jam / @jam_timon

12/10/2022 at 10:00PM

47
#45 - deusthe / @deusthe91

12/21/2021 at 08:21AM

53
#46 - ~~~ / @5AXZmAwcmUg0fOO

06/01/2021 at 12:56AM

53
#47 - migoo / @migoo00668679

10/17/2021 at 03:52PM

54
#48 - MortalityCure / @MortalityCure

06/07/2022 at 05:11PM

55
#49 - Sergio / @SergioVl12

04/21/2023 at 08:30AM

59
#50 - SmoggyFog / @SmoggyFog

05/30/2023 at 06:26AM

60
#51 - Kyle / @Kyle98675198

05/31/2021 at 06:24AM

62
#52 - POSIX / @po6ix

01/08/2022 at 05:21AM

73
#53 - Scott Berger / @scottberger

09/23/2021 at 08:00PM

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

07/17/2021 at 01:43AM

84
#55 - Bspammer / @Bspammer

08/14/2021 at 02:20AM

84
#56 - Johnnie Walker / @Johnnie11414500

04/15/2022 at 05:10PM

88
#57 - z00master / @z00master

08/03/2022 at 04:10PM

95
#58 - AAbraxas / @AAbraxas1

07/13/2021 at 08:29PM

132
#59 - George Sanewashington / @sekolyn

06/02/2021 at 07:54AM

145
#60 - Justin Haaheim / @justinhaaheim

03/02/2022 at 05:38AM