【发布时间】:2023-03-04 17:05:01
【问题描述】:
我试试
:! pdflatex file.tex && xdg-open file.pdf
一般来说,使用 '%' 命令,如何在 vim 中使用 regexp 将扩展名 .tex 转换为 .pdf?
:! pdflatex % && xdg-open ??
【问题讨论】:
-
您的要求非常不清楚。
我试试
:! pdflatex file.tex && xdg-open file.pdf
一般来说,使用 '%' 命令,如何在 vim 中使用 regexp 将扩展名 .tex 转换为 .pdf?
:! pdflatex % && xdg-open ??
【问题讨论】:
您可以使用:r 或< 和%(当前文件名)来删除扩展名。
:!pdflatex % && xdg-open %<.pdf
如需更多帮助,请参阅:
:h c_%
:h filename-modifiers
【讨论】: