idutils


Ⅰ. 插件描述

Simple interface with GNU id-utils (deprecated)

Ⅱ. 基本信息

创建日期:  2001-10-08
使用用户:  1
Github星:  1
插件作者:  Hari Krishna Dara

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/idutils'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/idutils'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/idutils'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This script has been superceded by vimscript #1062 with many enhancements.

This script provides a simple interface with GNU id-utils.

Summary Of Features:
  Command Line:
      IGInitialize, IDGrep, IDGrepAdd
                                                                              
  Settings:
      g:IGlidcmd, g:IGfiltercmd, g:IGautoCopen
                                                                              
Help:
      IDGrep    <keyword>
      IDGrep    [<lid argument> ...] <lid keyword pattern>
      IDGrep    <lid options> [+f <filter arguments> ...]
      IDGrepAdd <keyword>
      IDGrepAdd [<lid options> ...] <lid keyword pattern>
      IDGrepAdd <lid arguments> [+f <filter arguments> ...]
                                                                              
  You can use all the regular quickfix commands to traverse from one hit to
    another.
                                                                              
      :h quickfix
                                                                              
  Each time you run IDGrepAdd, the new list of matches are added to the
    existing list. This works the same as 'grepadd' command. If you can't
    use a single filter to get all the matches then this command helps you to
    still work with a single list instead of generating multiple lists.
                                                                              
  Use the g:IGlidcmd, g:IGfiltercmd, g:IGautoCopen global variables to set
    the path to 'lid' command, filter command name/path (defaults to 'grep')
    and if the error list window should automatically be opened (runs
    |:cwindow| at the end).
                                                                              
  You can pass as many filters as you want, each prefixed with +f option.
    The filter arguments are escaped such a way that the arguments are
    passed through the shell, unmodified to the filter.
                                                                              
Examples:
  - Filter the lines that don't contain src.
      IDGrep main +f src
                                                                              
  - Filter the lines that contain src.
      IDGrep main +f -v src
                                                                              
  - To search for the current word in all the files and filter the results
    not containing .java in the grepped output. This will potentially
    return all the occurences in the java files only.
      IDGrep <cword> +f .java
                                                                              
  - If any argument contains spaces, then you need to protect them by
    prefixing them with a backslash.  The following will filter those lines
    that don't contain "ABC XYZ".
      IDGrep <cword> +f ABC XYZ

Search_key_words: idutils id-utils gnu id grep gid mkid lid Hari Krishna Dara

添加新评论