Vimã¯éãã¦ãããã¡ã¤ã«ã®å½¢å¼ãèªèããfiletypeãªãã·ã§ã³ãè¨å®ãã(:filetype onãã¦ããã¨ã)ã
大æµã¯ãã¡ã¤ã«ã®æ¡å¼µåãè¦ã¦é©å½ã«å¤æãã¦ãããã®ã ããæ¡å¼µå.Rã使ãå¯è½æ§ã®ããè¨èªã¯Rã®ä»ã«RebolãRexxã¨ãããã®ãããããã(ãã®2ã¤ã¯ããç¥ããªããã©)ã.Rã«ééããæã¯ãã¡ã¤ã«ã®ä¸èº«ã50è¡ã»ã©ãã§ãã¯ãã¦filetypeã決å®ãããã
ãã®æãRã¨Rexxã®åºå¥ã¯ã³ã¡ã³ãã«ä½¿ãããæåã«ããå¤å¥ãããã
ããã¦Rã¦ã¼ã¶ã¼ã«ã¯å°ã£ããã¨ã«ãããã³ã¡ã³ããè¦ä»ãããªãã£ããfiletypeã¯Rexxã¨ãã¦è¨å®ããã¦ãã¾ãã
â¦ã¨ãããããªãã¨ã以å(quickrun.vimの導入など(for Windows) - もうカツ丼でいいよな)æ¸ãã¦ç¹ã«ä½ã®è§£æ±ºãã§ããªãã£ãã
ããã¥ã¢ã«ãèªããããã¥ã¢ã«ãèªããããã¥ã¢ã«ã¯æã ãã¹ã¦ã®(ry
ããã¥ã¢ã«(http://www.ac.cyberhome.ne.jp/~yakahaira/vimdoc/filetype.html)ãããèªãã§æ¸ãã¦ããéãã«ãã£ããç°¡åã«è§£æ±ºããã
- ~/.vim/ftdetect以ä¸ã«mine.vimã¨ãé©å½ãªååã§ãã¡ã¤ã«ä½æ(Windowsã ã¨~/vimfiles/ftdetect)
- ãã¡ã¤ã«å½¢å¼ãæ¤åºããèªåå®è¡ã³ãã³ããè¨è¿°
au BufRead,BufNewFile *.R set ft=r
- Vimãåèµ·å
ããã ãã§ã³ã¡ã³ããªãã®.Rãã¡ã¤ã«ã§ãfiletypeã¯Rã«ãªãããªãã¦ç°¡åãªã
ããã©ã«ãã®ãã¡ã¤ã«ã¿ã¤ãæ¤æ»ã®çµæãè¦ãã«ã¯ãããªæãã§~/.vim/ftdetect以ä¸ã®ãã¡ã¤ã«ã«ã³ãã³ããæ¸ãã¦ããã°ãããããã