TxtBrowser

How to install TxtBrowser?

(0) Install ctags
For windows gVim
http://ctags.sourceforge.net/
ctags58.zip
upzip it then copy ctags.exe to C:\Windows\System32
(1) Download taglist
http://www.vim.org/scripts/script.php?script_id=273
(2) unzip taglist
plugin/taglist.vim - main taglist plugin file
doc/taglist.txt - documentation (help) file
(3) setup taglist plugin
as Taglist has problem for supporting Chinese(CJK:Chinese, Japanese, Korean)
use the patch or the fixed taglist plugin
att.newsmth.net/att.php?p.731.55149.1226.vim
copy fixed taglist.vim to <VIM>/plugin/
taglist.txt to <VIM>/doc/
(4) install help tags
:helptags <PATH>
:helptags d:\tools\Vim\vim73\doc
(5) use the same method to install TxtBrower plugin
http://www.vim.org/scripts/script.php?script_id=2899
* $HOME/.vim/syntax/txt.vim - syntax for text/plain.
* $HOME/.vim/ftplugin/txt.vim - language definition for text/plain.
* $HOME/.vim/plugin/txtbrowser.vim - browser tools.
* $HOME/.vim/doc/txtbrowser.txt - help document in English.
* $HOME/.vim/doc/txtbrowser.cnx - help document in Chinese.
(6) Add the following line into your .vimrc file and restart your vim.
syntax on "syntax highlighting on
filetype plugin on
au BufEnter *.txt setlocal ft=txt
(7) Enable taglist plugin
:Tlist
(8) setting for ctags
set tags=tags;
set autochdir
the first command will search tags in current path,
the second command will search tags up recursion

ps:
1. $ ctags –R * ($ 为Linux系统Shell提示符)
2. $ vi –t tag (请把tag替换为您欲查找的变量或函数名)
3. :ts (ts 助记字:tags list, ":"开头的命令为VI中命令行模式命令)
4. :tp (tp 助记字:tags preview)---?此命令不常用,可以不用记
5. :tn (tn 助记字:tags next) ---?此命令不常用,可以不用记
6. Ctrl + ]
7. Ctrl + T






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值