sponsor Vim development Vim logo Vim Book Ad

Lookup : ftplugin for vim files to quickly find element definition, occurrences, or docs

 script karma  Rating 1/1, Downloaded by 1134  Comments, bugs, improvements  Vim wiki

created by
Eric Van Dewoestine
 
script type
ftplugin
 
description
Lookup is a plugin for vim script developers which provides functionality to
quickly and easily lookup docs for vim elements, or in the case of user defined
functions, commands, or variables, find the definition or occurrences of the
element.

While editing a vim file, you can lookup the element under the cursor using:

    :Lookup

You can also map this command so that you simply need to hit <cr> on an element
to look it up by adding the following to a ftplugin/vim_lookup.vim file in your
vimfiles directory (%HOME%/vimfiles on Windows, ~/.vim on Linux/OSX):

  if bufname('%') !~ '^\(command-line\|\[Command Line\]\)$'
    nnoremap <silent> <buffer> <cr> :Lookup<cr>
  endif

For more details please see the lookup vim docs (:help lookup).

http://github.com/ervandew/lookup
 
install details
1. Download the vimball (lookup.vba) to any directory.
2. Open the file in vim ($ vim lookup.vba)
3. Source the file (:so %)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
lookup.vba 1.0 2011-07-20 7.0 Eric Van Dewoestine Initial upload
ip used for rating: 18.223.172.252

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github