Giter Site home page Giter Site logo

ex-gsearch's Introduction


For more details, check exVim's Docs: Global Search


Intro

ex-gsearch is a global search plugin for Vim. By default it use id-utils as its search engine. In ex-gsearch, you can:

  • List search result in ex-gsearch window.
  • Filter search result by ex-gsearch's powerful filter method.
  • Jump to the search result.

ex-gsearch is also a part of exVim project.

Requirements

Installation

Install ex-utility

ex-gsearch is written based on exvim/ex-utility. This is the basic library of ex-vim-plugins. Follow the readme file in ex-utility to install it first.

Install id-utils

ex-gsearch used id-utils as its default search engine. id-utils is a GNU project, you can easily install it on Mac and Linux. For Windows user, you can download it from GNU-Win32 project: http://gnuwin32.sourceforge.net/packages/id-utils.htm

Mac

## use Homebrew
brew install idutils

Linux

## use pat-get
apt-get install idutils

## use yum
yum install idutils

## or compile id-utils from source

Windows

download it from GNU-Win32

Install ex-gsearch

ex-gsearch follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:

To install using Vundle:

# add this line to your .vimrc file
Bundle 'exvim/ex-gsearch'

To install using Pathogen:

cd ~/.vim/bundle
git clone https://github.com/exvim/ex-gsearch

To install using NeoBundle:

# add this line to your .vimrc file
NeoBundle 'exvim/ex-gsearch'

Download zip file:

cd ~/.vim
unzip ex-gsearch-master.zip
copy all of the files into your ~/.vim directory

Usage

Enter your project, use mkid command create your ID file:

mkid .

For more details about using mkid, read mkid-invocation. You can also specified your search file by editing id-utils' language-map.

You will see a ID file generated under your directory.

Start your Vim and try to global search a word by :GS your-word. A search window will open and the search results of your-word will be listed in it.

You can jump to the search result by hit the Enter on the listed lines. You can also filter the search results by use / and do a search on your filter word. After confirmed your search, press <leader>r and ex-gsearch will help you filter the result.

More details, check :help exgsearch.

ex-gsearch's People

Contributors

cpiger avatar jwu avatar yujianrong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ex-gsearch's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.