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 4d1cdb0635b40650b8000527

Make Fancy Header

Make the header text stand out with surrounding asterisks

Start file
Make this a fancy header
This is some text under the fancy header.

This is another fancy header
This is some more text
End file
************************
Make this a fancy header
************************
This is some text under the fancy header.

****************************
This is another fancy header
****************************
This is some more text

View Diff

0a1
> ************************
1a3
> ************************
3a6
> ****************************
4a8
> ****************************

Solutions by @shahanavazm:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @lionelyoung

344 active golfers, 1052 entries

Solutions by @shahanavazm:
18
#246 - shahanavaz m / @shahanavazm

03/03/2024 at 02:57AM

18
#>246 - shahanavaz m / @shahanavazm

03/03/2024 at 05:22AM

19
#>252 - shahanavaz m / @shahanavazm

03/15/2024 at 02:20AM

20
#>257 - shahanavaz m / @shahanavazm

03/02/2024 at 10:41PM

24
#>303 - shahanavaz m / @shahanavazm

02/14/2022 at 06:58PM

24
#>303 - shahanavaz m / @shahanavazm

01/29/2024 at 08:16PM

26
#>312 - shahanavaz m / @shahanavazm

02/14/2022 at 07:13PM

26
#>313 - shahanavaz m / @shahanavazm

01/29/2024 at 06:38PM

32
#>335 - shahanavaz m / @shahanavazm

02/14/2022 at 07:09PM

32
#>335 - shahanavaz m / @shahanavazm

03/02/2024 at 10:36PM

33
#>335 - shahanavaz m / @shahanavazm

04/05/2024 at 06:45PM

34
#>336 - shahanavaz m / @shahanavazm

03/02/2024 at 10:37PM