Ⅰ. 插件描述
Browse plain text easily(show the title tag and syntax highlight)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/txtbrowser'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/txtbrowser'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/txtbrowser'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/TxtBrowser
Ⅳ. 文档说明
The "TxtBrowser" plugin is a plain text browser plugin for Vim and provides the
following features to allow you to efficiently browse through plain text
files(for example RFCs). Chinese intruction is available at(中文介绍请访问):
http://guoyoooping.blog.163.com/blog/static/1357051832009112910162389/
- Title tag list: Show an overview of the structure of plain text and list all
- titles in the taglist windows, you can jump to them just by clicking. Use
":Tlist" command to open the taglist and use ":TlistUpdate" to update the
taglist after modification.
- Syntax highlight: highlight the key element in your plain text. This include
- title, URLs, keywords you defined(default is TODO, ERROR, etc), Words in
bracket, etc. Syntax hightlight would be auto loaded after install. Snapshot of
feature 1 and 2 are available at:
http://guoyoooping.blog.163.com/album/edit/#m=1&aid=193892890
- Browser Utilities(use ":help txt-howto" for details):
<Leader>s: Search text under cursor(or selected) through search engine(google).
<Leader>f: Find text under cursor(or selected) through web dictionary(www.dict.cn).
<Leader>g: Goto the URL under cursor(or selected).
<Leader>h: Highlight the word under cursor(or selected), it's easy and
simple, for more powerful highlight, You could refer to
txtfmt(vimscript #2208)*: Search forward for the word under cursor(or text selected).