俺ãVIM-LaTeXã«ã¤ãã¦æ¸ããããªã(2) ã¤ã³ã¹ãã¼ã«
ä»åã¯ã¤ã³ã¹ãã¼ã«ã®ä»æ¹ã«ã¤ãã¦ãWindowsã¸ã®ã¤ã³ã¹ãã¼ã«ãåºæ¬ã«è¨è¿°ããããUnixç³»ãã®ä»ã¸ã®ã¤ã³ã¹ãã¼ã«ãåæ§ã«è¡ããã¯ãã
表ç´ï¼
ç®æ¬¡
- Windows XP SP3 ã¸ã®ã¤ã³ã¹ãã¼ã«
- Linuxã¸ã®ã¤ã³ã¹ãã¼ã«
- Pythonã®ã¤ã³ã¹ãã¼ã«
Windows XP SP3 ã¸ã®ã¤ã³ã¹ãã¼ã«
- ããã±ã¼ã¸ã解åãã¦ãä¸èº«*1ã$HOME/vimfiles ã«è¨ç½®*2ã$HOMEã®å¤ã¯ãvimã³ãã³ã :echo $HOME ã§ç¢ºèªã§ãã*3ã
- :helptags $HOME/vimfiles/doc ã§ããã¥ã¡ã³ããã¤ã³ã¹ãã¼ã«ã
- VIM-LaTeXãå©ç¨ãããã¡ã¤ã«ã®æ¡å¼µåãè¨å®ããã_vimrcã« let g:tex_flavor='latex' ã¨æ¸ãã°ããã
" *.tex ã追å "au BufNewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl setf tex au BufNewFile,BufRead *.tex,*.latex,*.sty,*.dtx,*.ltx,*.bbl setf tex
- $HOME/_vimrc ã«ã次ã®ãããªåºæ¬è¨å®ãè¨è¿°ãããã°ã©ã ã®ãã¹ã¯ãåèªã®PCæ§æã«ãããã¦é©å®å¤æ´ãããã¨ã
"" ãã©ã°ã¤ã³ã使ãããã«ãã filetype plugin on "" ãã¾ããªã set shellslash set grepprg=grep\ -nH\ $* "" .texãã¡ã¤ã«ã®ã³ã³ãã¤ã«ããã°ã©ã ãæå®(ã¨ã©ã¼ã§åæ¢ããªããããªãã·ã§ã³æå®) let g:Tex_CompileRule_dvi = 'platex --interaction=nonstopmode $*' "" .bibãã¡ã¤ã«ã®ã³ã³ãã¤ã«ããã°ã©ã ãæå® let g:Tex_BibtexFlavor = 'jbibtex' "" .dviãã¡ã¤ã«ã®ãã¥ã¼ããã°ã©ã ãæå® let g:Tex_ViewRule_dvi = 'c:/tex/dviout/dviout.exe' "" pdfãã¡ã¤ã«çæã®ããã®ä¾åé¢ä¿ãè¨è¿°ã "" 以ä¸ã®è¨å®ã®å ´åãã¿ã¼ã²ããã«pdfãæå®ãã¦\llã§ã³ã³ãã¤ã«ããã¨ã "" ã¾ã.dviãã¡ã¤ã«ãä½ããã次ã«ããããã¨ã«.pdfãã¡ã¤ã«ãä½ããã let g:Tex_FormatDependency_pdf = 'dvi,pdf' "" .dviãã¡ã¤ã«ã®ã³ã³ãã¤ã«ããã°ã©ã ãæå® let g:Tex_CompileRule_pdf = 'dvipdfmx $*.dvi' "" .pdfãã¡ã¤ã«ã®ãã¥ã¼ããã°ã©ã ãæå® let g:Tex_ViewRule_pdf = 'C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe'
Linuxã¸ã®ã¤ã³ã¹ãã¼ã«
åºæ¬çã«ã¯Windowsã®å ´åã¨åãããã ããUnix系統ã¯Windowsã¨ã¯ã©ã³ã¿ã¤ã ãã¡ã¤ã«ã®æ¤ç´¢å ãã£ã¬ã¯ããªãéãã®ã§ãããã確èªãããã¨ã
å ·ä½çã«ã¯ãWindowsã§ã®ã¤ã³ã¹ãã¼ã«å $HOME/vimfilesã $HOME/.vim ã«å¤ãã¦ãåæ§ã®ä½æ¥ãè¡ãã°ããã
ä»ã®OSã®å ´åãã:set runtimepath? ã§ã©ã³ã¿ã¤ã ãã¡ã¤ã«æ¤ç´¢å
ã確èªãã¦ããã®ãã£ã¬ã¯ããªã«ã¤ã³ã¹ãã¼ã«ããã°OKãªã¯ãã
Pythonã®ã¤ã³ã¹ãã¼ã«
Vim-Latexã®ä¸é¨ã®æ©è½ã¯ãPython2.xãå¿ è¦ã¨ãªããUnixç³»OSã®å ´åã¯ããã©ã«ãã§ã¤ã³ã¹ãã¼ã«ããã¦ããã ããããWindowsã®å ´åã¯ãèªåã§ダウンロードã»ã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã
*1:compiler, docãªã©ã®å種ãã£ã¬ã¯ããªãltagsãªã©ã®ãã¡ã¤ã«ãããã¯ãã ã
*2:ã©ã³ã¿ã¤ã ãã¡ã¤ã«ã®æ¤ç´¢å ãã£ã¬ã¯ããªãªãã©ãã«è§£åãã¦ããããæ¤ç´¢å ãã£ã¬ã¯ããªã¯ã :set runtimepath? ã§è¡¨ç¤ºãããã詳細㯠:help 'runtimepath' ãã
*3:以ä¸åæ§ã«ã$å¤æ°ã®å¤ã®ç¢ºèªã¯ :echo ã§è¡ããã