sponsor Vim development Vim logo Vim Book Ad

incfiles.vim : create menu entries for each include file in a C/C++ file

 script karma  Rating 2/2, Downloaded by 991  Comments, bugs, improvements  Vim wiki

created by
thomas ramming
 
script type
utility
 
description
This script generates menu entries for each include file within the actual edited C/C++ file.
After executing it, you can enter any of the include files by selecting them via menu.

The script is just quick and (hope not very) dirty written, but working (only short tests up to now)
under GVIM 5.8, NT4.0, Novell network
 
install details
- create menu entry for include file (to enter it) within C/C++ files
- adds menu entries under main menu 'Proj'
e.g. enter ':% call CreateIncFileMenu()' within your C/C++ file.
Then you can enter any include file by selecting it in the menu.
Create a menu entry in your _gvimrc to source in and call this script:
($VIM_SYNTAX must contain the path to this script file)
'menu 12.10 Proj.Add\ include\ files :so $VIM_SYNTAX/incfiles.vim<CR>:% call CreateIncFileMenu()<CR>'
 

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
incfiles.vim 1.0 2001-09-04 5.7 thomas ramming Initial upload
ip used for rating: 3.145.12.242

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