txt.vim


Ⅰ. 插件描述

Make Vim more usable for viewing and editing plain text

Ⅱ. 基本信息

创建日期:  2016-09-04
使用用户:  1
Github星:  1
插件作者:  Francis Niu

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# txt.vim

Make Vim more usable for viewing and editing plain text

Version: 0.1

Pros:

  • The syntax file colors numbers, punctuation marks, links, quoted or bracketed text, Shell/C/C++ style comments, list items, TODOs/ERRORs, etc.
  • The ftplugin file includes some usable settings when viewing and editing text file.
  • The ftdetect file auto-detects text file according to file extension name.
  • Support CJK characters.

Cons:

  • If the text contains unmatching quotation/bracket marks, syntax color will be a little odd.

Installation

[pathogen][]

cd ~/.vim/bundle
git clone --depth=1 https://github.com/flniu/txt.vim.git

[vim-plug][]

" Add this line in vim-plug section:
Plug 'flniu/txt.vim'
" Then run commands in vim:
:so %
:PlugInstall

txt.vim 中文说明

让Vim更加便于查看和编辑纯文本

版本: 0.1

利:

  • syntax文件分色显示数字、标点符号、链接、引号或括号中的文字、Shell/C/C++风格的注释、列表项、TODOs/ERRORs、等等。
  • ftplugin文件包含一些查看和编辑纯文本文件的设置。
  • ftdetect文件根据扩展名自动识别纯文本文件。
  • 支持CJK字符集。

弊:

  • 如果文本中包含不匹配的引号或括号,文字的颜色会不正常。

安装方法

[pathogen][]

cd ~/.vim/bundle
git clone --depth=1 https://github.com/flniu/txt.vim.git

[vim-plug][]

" 在vim-plug配置节中添加这一行:
Plug 'flniu/txt.vim'
" 然后在vim中执行:
:so %
:PlugInstall

添加新评论