As a way of organizing my codes, I like to include some titles as comments with specific patterns (I wish I can add ASCII art!). Consider for example, putting the following to mark a specific block of code://===================== Solving a big problem =============================////--------------------The most important calculation-----------------------//     ... some code ...//------------------------End of the calculation---------------------------////--------------------I/O operations are on their way ---------------------//     ... some code ...//------------------------End of I/O operations----------------------------////============================== End solution =============================//What I require:The pattern should be 80-column wide (including identation space)The title should be centeredIs there a way I can automate the generation of such patterns in vim?
How to generate patterns for comments?
vimscript;comments