[Vim-latex-devel] Vimlatex customization
Brought to you by:
srinathava,
tmaas
From: Mario D <eg...@gm...> - 2013-11-21 18:33:35
|
Hi all, I just installed vim-latex on an Ubuntu system with vim 7.3.429. I extracted the source vim-latex-1.8.23-20130116.788-git2ef9956.tar.gz and then I ran Make install and it installed in /usr/local/share/vim. To use it, I added set runtimepath^=/usr/local/share/vim to my .vimrc and everything is fine: it works perfectly (BTW, thanks a lot for this wonderful script!). The problem is when I try to customize it: following the instructions in texrc, I created the file ~/.vim/ftplugin/tex.vim Inside it, I put: let g:Tex_CompileRule_dvi = 'vimlatex latex -interaction=nonstopmode -src-special $*' let g:Tex_ViewRuleComplete_dvi = 'xdvi 2>/dev/null' let g:Tex_ViewRule_dvi = 'xdvi 2>/dev/null' let g:Tex_Folding = '0' let g:Tex_AutoFolding = '0' let g:Tex_Leader = ',' let g:Tex_UseUtfMenus = '1' call IMAP('sss', '^{<++>}<++>', 'tex') When I open a tex file, this is correctly source since, for example, the sss map works correctly. I can also see that the variables get the correct value; yet, some of them do not have the expected result. Namely: - The file is opened folded, despite Folding and AoutFolding are 0. - Leader is still ` (and, again, :let Tex_Leader returns , correctly) - In the menu Tex-Math I don't see the graphic of the symbols - Also, I had to set _both_ Tex_ViewRule_dvi and Tex_ViewRuleComplete_dvi: setting only one of them I missed one of the ,ls or ,lv shortcuts Please note that if I make all the changes in /usr/local/share/vim/ftplugin/latex-suite/texrc then everything works as expected but, as indicated in the starting comment of texrc, I would prefer not to do so, so that I do not have to bother in case of upgrade. Can someone please help me? Am I missing something? Thanks a lot Mario |