Looking for the name of a vim plug-in that automatically adds file headers (picture included)
大家讲道理2017-05-16 16:40:17
0
3
890
As shown in the figure, when using vim to open a new file (such as a.cpp), the file header is automatically added. I would like to ask which plugin can do this. Thanks.
No plug-ins are required, just configure it, such as this article (Configuring vim to automatically add author information in the source code)
If you want to create a file to add automatically, you can first save the default file in a file, and then add code similar to the following in .vimrc:
au BufNewFile *.xml 0r ~/.vim/xml.skel | let IndentStyle = "xml"
au BufNewFile *.html 0r ~/.vim/html.skel | let IndentStyle = "html"
c.vim
No plug-ins are required, just configure it, such as this article (Configuring vim to automatically add author information in the source code)
If you want to create a file to add automatically, you can first save the default file in a file, and then add code similar to the following in
.vimrc
:For plug-ins, try the ones listed on this page.
Source
Share .vimrc. I watched others implement it this way, and then I slightly innovated it myself.