/etc/httpd/conf.d 以ä¸ã®è¨å®ãã¡ã¤ã«ã§ syntax highlight æ¹è¨ç
/etc/httpd/conf.d 以ä¸ã®è¨å®ãã¡ã¤ã«ã vim ã§ç·¨éããéã« syntax highlight ãæå¹ã«ããæ¹æ³ã«ã¤ãã¦ãhttp://d.hatena.ne.jp/shogo0809/20091225/1261737524 ã§è¡ã£ãæ¹æ³ããããããªãã£ãäºãç¥ã£ãã®ã§ãæ£ããæé ã§å度ã¡ã¢ãã
1. äºåæºå
å¿ è¦ãªãã£ã¬ã¯ããªãä½æããããã§ã«åå¨ããå ´åã¯ä¸è¦ã
[root@localhost ~]# mkdir ~/.vim [root@localhost ~]# mkdir ~/.vim/ftdetect
2. ãã¡ã¤ã«å¤å®ã¹ã¯ãªããã®è¨è¿°
~/.vim/ftdetect 以ä¸ã«ã以ä¸ã®ãããªãã¡ã¤ã«ãä½æããã
au BufRead,BufNewFile /etc/httpd/conf/*,/etc/httpd/conf.d/* set filetype=apache
ååã¯ä½ã§ãããï¼~/.vim/ftdetect/apache.vim ã¨ãï¼ã
ããã ãã§OKããããvimãã¡ããã¨ãããã¨ããã«æãå±ãããã«ãªã£ã¦ããã ãªããã¨çæããã