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 @c28byy7m8b:

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

351 active golfers, 1079 entries

Solutions by @c28byy7m8b:
23
#297 - Andreas Siegrist / @c28byy7m8b

02/03/2022 at 02:00PM

24
#>309 - Andreas Siegrist / @c28byy7m8b

02/03/2022 at 01:58PM

33
#>342 - Andreas Siegrist / @c28byy7m8b

02/04/2022 at 03:54PM