http://hdj-berkeley.blogspot.com/2008/08/gvimcompile-latex.html
讓我來說明一些常用的指令
如
\ll compile latex
\lv 開啟compile完的檔案
預設是開啟dvi檔
如果想要開啟pdf檔
可以在C:\Program Files\Vim\vimfiles\ftplugin\tex.vim裡加入
let g:Tex_ViewRule_pdf = 'pdfopen --file'
有人將指令寫成了一個小抄,有興趣可以下載回來使用
http://users.physik.fu-berlin.de/~goerz/blog/wp-content/uploads/2008/09/vimlatexqrc.pdf
此外,底下舉一個使用macro的範例
假設我要寫一個表格
只要在輸入模式下打ETE
就會跑出以下內容:
\begin{table}
\centering
\begin{tabular}{<+dimensions+>}
<++>
\end{tabular}
\caption{<+Caption text+>}
\label{tab:<+label+>}
\end{table}<++>
其中的<++>是需要自己修改的欄位
可以使用ctrl+j切換
相當的便利
參考來源:
http://icespot.blogsome.com/2005/05/16/vim-latex-marco-%E7%AE%80%E6%98%8E%E6%8C%87%E5%8D%97/
http://vim-latex.sourceforge.net/documentation/latex-suite.html#latex-macros





