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

73 active golfers, 322 entries

Leaderboard (lowest score wins):
30
#31 - e1mnos / @e1mnos

08/10/2021 at 11:02AM

30
#32 - 深窓の令嬢@ドクター / @arbino1031

12/15/2021 at 01:28PM

30
#33 - phazy / @phazy_x86

01/21/2022 at 07:27PM

30
#34 - Youssef Magdy / @youssef_magdy29

04/29/2022 at 02:38AM

30
#35 - vuems / @vuems2win

11/19/2022 at 01:25PM

31
#36 - BowTiedCoin / @BowTiedCoin

01/24/2022 at 12:26PM

32
#37 - Ferran / @dillunsos

07/29/2021 at 01:30PM

33
#38 - Youngchan Lee / @edwardycl

06/03/2021 at 05:50AM

33
#39 - Monte Creasor / @montecreasor

08/20/2021 at 02:47AM

35
#40 - grsh / @girish_i_am

06/03/2021 at 07:11PM

38
#41 - Andy Tockman / @atckmn

07/16/2022 at 02:51AM

39
#42 - Bruce Lee / @BruceLeeIII

07/23/2021 at 07:47PM

40
#43 - Louis Gerard / @louisgerardd

06/27/2021 at 08:20AM

40
#44 - DC1RW / @monokai3

08/23/2021 at 10:12AM

40
#45 - RosaTryp / @RosaTryp

03/20/2023 at 05:39PM

41
#46 - Peter Pandorum / @PeterPandorum

08/07/2021 at 08:56PM

41
#47 - steve / @steve35773420

04/26/2023 at 11:34PM

44
#48 - towc / @MateiCopot

06/02/2021 at 08:26AM

45
#49 - Phil Hord / @phord

10/19/2021 at 11:08PM

46
#50 - Timon Jam Jam / @jam_timon

12/10/2022 at 10:00PM

47
#51 - deusthe / @deusthe91

12/21/2021 at 08:21AM

53
#52 - ~~~ / @5AXZmAwcmUg0fOO

06/01/2021 at 12:56AM

53
#53 - migoo / @migoo00668679

10/17/2021 at 03:52PM

54
#54 - MortalityCure / @MortalityCure

06/07/2022 at 05:11PM

55
#55 - Sergio / @SergioVl12

04/21/2023 at 08:30AM

59
#56 - SmoggyFog / @SmoggyFog

05/30/2023 at 06:26AM

60
#57 - Kyle / @Kyle98675198

05/31/2021 at 06:24AM

60
#58 - heog / @Heogy

04/08/2024 at 12:23PM

62
#59 - POSIX / @po6ix

01/08/2022 at 05:21AM

73
#60 - Scott Berger / @scottberger

09/23/2021 at 08:00PM