(这个问题接近于一个 我昨天在 tex 上发布.stackexchange,但我开始意识到我应该将其发布在这里。)
当我使用 Vim Latex-suite 缩进我的 .Rnw
文件时,Sweave 块(例如像这样的行<<>>=
) 缩进(如果它位于缩进文本之后,例如在逐项列表中)。不幸的是,这“破坏”了 Sweave 命令,因为它们必须从第一列开始。
我对 Vim 的技能只有最低限度,并且一上午的搜索并没有告诉我如何更改我的 ~/.vim/indent/tex.vim
(或其他相关)文件以使 Sweave 块为零缩进,但要正确缩进后面的乳胶代码。有什么想法吗?
(This question is close to one I posted yesterday on tex.stackexchange, but I have come to realize I should have posted it here.)
When I use Vim latex-suite to indent my .Rnw
files, the Sweave blocks (e.g. a line like <<>>=
) get indented (if it's following indented text, e.g. in an itemized list). Unfortunately, this "breaks" the Sweave commands, because they must start in the first column.
I have only minimal skill with Vim, and a morning of searching has not shown me how to alter my ~/.vim/indent/tex.vim
(or other relevant) file to make Sweave blocks have zero indentation, but to have the latex code that follows be properly indented. Any ideas?
发布评论
评论(1)
截至昨天,vim R 插件的更新现在工作正常。
The update to vim's R plugin now works fine, as of yesterday.