allstars' blog
shut the fuck up and write some code
Monday, January 10, 2011
vim filetype is unknown
最近發現用vi開一些檔案時
像普通的文字檔 log
整個syntax就變得怪怪的
例如 某些字之後 就全部變highlight了 (像visual mode)
而查到可以用 :set
來看現在的filetype是什麼
看來是vim不能猜出這些檔案是什麼filetype的關系
所以最後在 ~/.vimrc裡加上
if !did_filetype()
au BufRead,BufNewFile * setfiletype text
endif
似乎問題就解決了!?
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment