开发者

vim plugin comment blocks

开发者 https://www.devze.com 2022-12-21 16:30 出处:网络
I looked around, but didn\'t find what I wanted.I need a vim plugin to insert blocks of code and prompt me for values in the comment.

I looked around, but didn't find what I wanted. I need a vim plugin to insert blocks of code and prompt me for values in the comment.

//      **********************   BeWee   ************************
//      *** Creation Date:
//      *** Last Modification Date:
//      *** File name: BeWee.cpp
//      ***********开发者_Go百科**********************************************
//      *** Programmer:  Name
//      *** Email: Email
//      *********************************************************
//      *** This file contains the implementation for the class
//      *** BeWee.  The class BeWee models ...
//      ***
//      *********************************************************

I want to be prompted to enter the BeWee, Creation Data, etc

I currently have these comments in a file and just read them into the vim editor.

TIA


Look at SnipMate. Follow the install guide and make a snippet with the layout.


Probably You are looking for template engine for vim.

Try this


In my opinion TSkeleton.vim could help you to do what you want. It can load the skeleton that you will have made and let you modify the different parts (values) on the fly.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号