Giter Site home page Giter Site logo

idsearch.vim's Introduction

This is a plugin that uses GNU id-utils (http://www.gnu.org/software/idutils/) for a quick find-in-files and preview from within vim.
It searches for a word using the 'gid' command and lists the results in a small window. As you move over the results, each file is shown in a preview window. 

To edit the previewed file in the same window, press Enter (<CR>). To go back to the original file, press H.
To open it in a new tab, press t.
To open silently in a new tab, press T. 

Note: 
This is my first attempt at writing a vim script. I used NERDTree's source to learn how to do certain things. It's a fantastic plugin for file exploration and more.

INSTALLATION
************

Install GNU id-utils and generate an ID file for your project tree with mkid. 
Map the g:IDSearchCurrentWord() and g:IDSearchCustom() functions to suitable keys 
eg: 
map <C-F> :call g:IDSearchCurrentWord()<CR>
map <C-G> :call g:IDSearchCustom()<CR>

This will search for the word under the cursor when Ctrl-f is pressed and prompt you for the search word when Ctrl-g is pressed. The word can use * and ? wildcards (see id-utils manual for details).

idsearch.vim's People

Contributors

banga avatar

Watchers

James Cloos avatar Kim Schulz avatar

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.