cHeaderFinder : Finds header required by C functions.
| script karma
Downloaded by 801
Comments, bugs, improvements
script versions (upload new version)
|This script can find the header or list of headers requires by a particular C function. It uses man pages, chapters 2 and 3. If not found there, it uses the tags file in combination with the a.vim plugin.
All that without spoiling the jumplist!!!
Under suggested settings:
\f: gets all the headers required by the function under the cursor and puts them in the default register, so you can go to the top of the C source and 'p' them.
\a: goes to the header of the function under the cursor. It's usually where it *should* be documented.
|This script requires a.vim (http://www.vim.org/scripts/script.php?script_id=31).
Just put the cHeaderFinder.vim in the plugin directory. Help is autoinstalled at the first run.
It does not bind any key by default. The recommended binds should be pasted in ~/.vimrc:
nnoremap <leader>f :call CHeaderFinder_HeadersFromFuncUnderCursor()<CR>
nnoremap <leader>a :call CHeaderFinder_GotoHeaderFromFuncUnderCursor()<CR>
Click on the package to download.
ip used for rating: 126.96.36.199