http://vim.sourceforge.net/scripts/script.php?script_id=1532
增加txt文件的显示效果,如图:
http://www.haze.ehost.pl/pub/vim/txt-default.png
方法如下:
1.下载txt.vim 文件,放入systax目录.
2.按照作者的介绍要识别txt文件,必须如下操作:
I'd also suggest to add a file into your $HOME/ftdetect called txt.vim that contains a line:
au BufRead,BufNewFile * setfiletype txt
This way if Vim cannot detect a filetype of a file you've just opened - it sets this universal syntax.
我直接加入_vimrc文件,现在看txt文件好多了!