首页 > Linux操作系统 > Linux操作系统 > txt.vim : Universal syntax script for all txt docs, logs and other types
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文件好多了!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/267265/viewspace-82851/ ,如需转载,请注明出处,否则将追究法律责任。