Sha*_*awn 5 vim latex reformat
当我正在编辑LaTeX文件时,我Vim-LaTeX想重新格式化一段文字,这些文字在\caption{}我得到的悬垂或悬垂中 - 我不知道该怎么称呼它们.我首先选择标题中的文本然后使用"gq"重新格式化它.重新格式化标题后看起来像:
\caption{The problem is that when I reformat the text
in a caption the text on each successive line
begins further and further to the left until it begins
at the first space of the line.}
Run Code Online (Sandbox Code Playgroud)
我希望结果看起来像是这样的:
\caption{The problem is that when I reformat the text
in a caption the text on each successive line
begins further and further to the left until it
begins at the first space of the line.}
Run Code Online (Sandbox Code Playgroud)
我希望这篇文章中的格式仍然适用于我输入的内容,但我试图在第一个示例标题中描述问题.第二个应该是左对齐的.
有谁知道我需要做些什么来解决这个问题?我假设有一个我需要更改的设置,但我无法弄清楚它是什么.
命令gq格式基于'formatexpr'或'formatprg'。:se fex?您可以首先使用和检查这些选项的值:se fp?。
从查看vim-latex插件来看,它从未设置这些选项,因此这可能是由您的其他插件或 vimrc 设置的。您可以使用 来准确找出选项的设置位置:verbose。
| 归档时间: |
|
| 查看次数: |
72 次 |
| 最近记录: |