txt.vim


Ⅰ. 插件描述

Universal syntax script for all txt docs, logs and other types

Ⅱ. 基本信息

创建日期:  2006-04-28
使用用户:  39
Github星:  8
插件作者:  Tomasz Kalkosinski

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/txt-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/txt-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/txt-vim-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/txt.vim

Ⅳ. 文档说明

This is an universal syntax script for all text documents, logs, changelogs, readmes and all other strange and undetected filetypes. The goal is to keep it very simple.It colors numbers, operators, signs, cites, brackets, delimiters, comments, TODOs, errors, debug, changelog tags and basic smileys ;]

Visit project site for details and comparision screenshots:
http://spoonman.eu/wiki/index.php?page=txt+syntax+file

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.

Your suggestions are very welcome.

添加新评论