这个我确定是真的很基础的东西。我刚开始使用gvim和latex-suite。不过,我希望使用.Rnw扩展名编辑sweave文件时加载latex-suite。联想.vn与vim乳胶套件
我的.vimrc看起来像这样
" These settings are needed for latex-suite
filetype indent on
filetype plugin on
filetype on
let g:tex_flavor='latex'
set grepprg=grep\ -nH\ $*
"let g:Tex_Folding=0 "I don't like folding.
set iskeyword+=:
,我想有一些选项我可以在这里设置,使得VIM治疗荷广为.tex?
我把你的建议在ftdetect(必须先创建它)。现在gvim以乳胶模式打开.Rnw文件。这是我要求的。非常感谢! – Andreas 2009-10-01 17:03:43
仅供参考:[Vim-R-Plugin](http://www.vim.org/scripts/script.php?script_id=2628)现在会自动执行此操作。 – atomicules 2011-09-28 14:00:14