A vim plugin for grepdef: search for symbol definitions in various programming languages
This adds the command :GrepDef <symbol> [path]
This also adds the mapping <Leader>d
to run grepdef on the symbol under the cursor.
The filetype will automatically be detected. Currently this supports only php and javascript.
You must have grepdef installed.
If using Pathogen:
cd ~/.vim/bundle
git clone https://github.com/sirbrillig/vim-grepdef.git
If using Vim-Plug, add the following to your vimrc inside the plugin block:
Plug 'sirbrillig/vim-grepdef'
If needed, you can set the path to grepdef
executable by setting the g:grepdef_path
variable.