Ⅰ. 插件描述
Plugin to search the labels often used as TODO, FIXME and XXX.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gilsondev/searchtasks-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gilsondev/searchtasks-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gilsondev/searchtasks-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gilsondev/searchtasks.vim
Ⅳ. 文档说明
# Search Tasks - Search TODO, FIXME and XXX in your project
Introduction
When you develop, it is likely that inserts comments that serves
as a reminder of what needs to improve, implement, or withdraw future.
You also have situations where you need to put a comment from a hack
who made or an encoding that need a better fix.
For it is common to use labels TODO, FIXME and XXX in comments.
But how does all of them to look in a directory containing your source code?
This plugin help and do a scan of all kinds of comments that matches the labels used.
Commands
" Search in root directory (TODO, FIXME, XXX)
:SearchTasks .
" Search in directory app/ in files .py
:SearchTasks app/*.py
" Search with grep
:SearchTasksGrep **/*.phpConfiguration
If you want to change or enter new labels for searchtask search, just enter the following in your configuration .vimrc:
" List occurrences for search
let g:searchtasks_list=["TODO", "FIXME", "XXX"]