vim-latex:自动识别自定义命令
我切换到 vim-latex 并遇到以下问题:我经常定义新的方便命令,以便通过 \newcommand
更轻松地进行编辑。我自己的命令通常带有 2 个或更多参数。
现在我们假设我创建了一个带有 3 个参数的命令 mycommand
。
有没有办法告诉 vim-latex 自动识别我的自定义命令,这样我就可以简单地输入 mycommand
并按
(或任何等效的东西)和 vim自动将其转换为 \mycommand{<++>}{<++>}{<++>}<++>
?
注意:我知道 Tex_Com_name
,但由于我经常创建新命令,所以我不想一直这样做。
I switched to vim-latex and have the following issue: I frequently define new convenient commands for easier editing via \newcommand
. My own commands usually take 2 or more parameters.
So let's for now assume I created a command mycommand
that takes 3 parameters.
Is there a way to tell vim-latex to automatically recognize my custom commands, so that I can simply type mycommand
and press <F7>
(or anything equivalent) and vim automatically converts this to \mycommand{<++>}{<++>}{<++>}<++>
?
Note: I know about Tex_Com_name
, but since I create new commands that often, I don't want to do this all the time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于这似乎是 vim 中不存在的功能,因此我自己创建了它。我没有进行深入的测试,但到目前为止它似乎工作得很好。
Since this seems to be a nonexistent feature in vim, I've created it myself. I didn't do in-depth tests, but it seems to work quite well so far.