vim-latexを入れてみる
http://sourceforge.net/projects/vim-latex/files/ より
ソースを DL後 解凍
~/.vim/配下へぶち込む
そして,vi ~/.vimrcに以下(quote from TeX wiki)を追加
"" "" Vim-LaTeX "" filetype plugin on filetype indent on set shellslash set grepprg=grep\ -nH\ $* let g:tex_flavor='latex' let g:Imap_UsePlaceHolders = 1 let g:Imap_DeleteEmptyPlaceHolders = 1 let g:Imap_StickyPlaceHolders = 0 let g:Tex_DefaultTargetFormat = 'pdf' let g:Tex_FormatDependency_ps = 'dvi,ps' let g:Tex_FormatDependency_pdf = 'dvi,pdf' let g:Tex_CompileRule_dvi = 'platex -synctex=1 -src-specials -interaction=nonstopmode $*' let g:Tex_CompileRule_ps = 'dvips -Ppdf -t a4 -o $*.ps $*.dvi' let g:Tex_CompileRule_pdf = 'dvipdfmx $*.dvi' let g:Tex_BibtexFlavor = 'pbibtex' let g:Tex_MakeIndexFlavor = 'mendex $*.idx' let g:Tex_UseEditorSettingInDVIViewer = 1 let g:Tex_ViewRule_dvi = 'pxdvi -nofork -watchfile 1 -editor "vim --servername vim-latex -n --remote-silent +\%l \%f"' "let g:Tex_ViewRule_dvi = 'advi -watch-file 1' "let g:Tex_ViewRule_dvi = 'evince' "let g:Tex_ViewRule_dvi = 'okular --unique' "let g:Tex_ViewRule_dvi = 'wine ~/.wine/drive_c/w32tex/dviout/dviout.exe -1' let g:Tex_ViewRule_ps = 'gv --watch' "let g:Tex_ViewRule_ps = 'evince' "let g:Tex_ViewRule_ps = 'okular --unique' let g:Tex_ViewRule_pdf = 'texworks' "let g:Tex_ViewRule_pdf = 'gv --watch' "let g:Tex_ViewRule_pdf = 'evince' "let g:Tex_ViewRule_pdf = 'okular --unique' "let g:Tex_ViewRule_pdf = 'zathura'
0 件のコメント:
コメントを投稿