Giter Site home page Giter Site logo

vim-opengrok's Introduction

vim-opengrok: opengrok interface for vim

Inspired by youngker/eopengrok.el

vim-opengrok screenshot

Installation

Plugin 'asenac/vim-opengrok'

Requeriments

Note: vim-opengrok uses opengrok's command line tools but it does not require to have opengrok's web application deployed.

Configuration

Add the following lines to your vimrc using the appropriate routes:

let g:opengrok_jar = '/path/to/opengrok/lib/opengrok.jar'
let g:opengrok_ctags = '/path/to/ctags'

vim-opengrok can use either a per-project index, created in a directory called .opengrok within the root directory of the project by using :OgIndex command, or an external index by defining g:opengrok_config_file variable pointing to the configuration.xml file. For example, for using the same index for both opengrok's web application and vim-opengrok, you might want to add the following to your vimrc file:

let g:opengrok_config_file = '/var/opengrok/etc/configuration.xml'

Note: vim-opengrok will fallback on g:opengrok_config_file variable if no index directory is found in the directory tree of the current working directory.

Commands

:OgIndex /path/to/index

Creates an index for the directory specified.

:OgReIndex

Updates the index that contains the current directory.

:OgSearch [f|d|r|p]

Searches in the index and displays the results in Vim's location list. A prompt is displayed to introduce the text to search. Supported queries:

  • d - Symbol Definitions

  • r - Symbol References

  • p - Path

  • f - Full text

    :OgSearchCWord

Searches word under the cursor and displays the results in Vim's location list.

:OgMode

Interactive queries displaying the results in a special buffer (see screenhost above).

Limitations

Currently vim-opengrok displays only the first chunk of results returned by opengrok.

vim-opengrok's People

Contributors

asenac avatar

Stargazers

Jeffrey H. Johnson avatar Jasha Sommer-Simpson avatar  avatar  avatar Ariel Miculas avatar 王涵 avatar Thomas avatar Daniel Xie avatar Czxck001 avatar cyclone avatar Ashish Tibrewal avatar Prabodh Agarwal avatar donghailang avatar  avatar  avatar  avatar nextcoffee avatar  avatar  avatar Chen-tao avatar Kai Li avatar vegetable avatar Phoenix avatar Richard Shi avatar Ryan Carter avatar Jacobo de Vera avatar Ike Devolder avatar Tom Van Herreweghe avatar Tony R Quilkey avatar Hirokazu Hata avatar deris avatar YAMASAKI Masahide avatar Yuichiro MUKAI avatar  avatar Egon Hyszczak avatar Andrea Cedraro avatar Benoît Taine avatar Marko Ivanek avatar  avatar

Watchers

cyclone avatar donghailang avatar  avatar

vim-opengrok'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.