首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
Vim
使用 Vim 新建文件时,自动添加文件头
SpaceVim
·
2019-09-05 21:09:18 +08:00
· 3521 次点击
这是一个创建于 1737 天前的主题,其中的信息可能已经有所发展或是发生改变。
刚刚在知乎上简单写了这一功能使用,有兴趣朋友可以了解下,谢谢!
https://zhuanlan.zhihu.com/p/81269979
vim
知乎
文件
新建
3 条回复
•
2019-09-30 10:24:49 +08:00
1
ivechan
2019-09-12 16:26:32 +08:00
感觉用 snippets 更加灵活一点。
2
jelick
2019-09-16 09:32:32 +08:00
推荐你使用 snippets
https://github.com/SirVer/ultisnips
3
ahonn
2019-09-30 10:24:49 +08:00
我写过一个类似的
https://github.com/ahonn/vim-fileheader
效果跟这个
https://marketplace.visualstudio.com/items?itemName=mikey.vscode-fileheader
插件差不多
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2414 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 08:06
·
PVG 16:06
·
LAX 01:06
·
JFK 04:06
Developed with
CodeLauncher
♥ Do have faith in what you're doing.