mNo edit summary |
(Added categories, some clean up) |
||
Line 1: | Line 1: | ||
− | |||
{{review}} |
{{review}} |
||
{{Tip |
{{Tip |
||
Line 11: | Line 10: | ||
|text= |
|text= |
||
I searched the tips database and didn't find this. Do not know the best place for this tip. |
I searched the tips database and didn't find this. Do not know the best place for this tip. |
||
− | |||
− | |||
This tip is relevant to those who use the "Intellisense" functionality for vim (insenvim.sourceforge.net) for C++. This requires, as a part of its setup, that the paths for the all the included header files in a C++ file be present in the $INCLUDE variable. This is fine so long as all your header files are in one (invariant) location (say the MSVC's include directory). However, if your C++ file includes header files in locations relative to the current file, updating the INCLUDE environment variable is not an option. |
This tip is relevant to those who use the "Intellisense" functionality for vim (insenvim.sourceforge.net) for C++. This requires, as a part of its setup, that the paths for the all the included header files in a C++ file be present in the $INCLUDE variable. This is fine so long as all your header files are in one (invariant) location (say the MSVC's include directory). However, if your C++ file includes header files in locations relative to the current file, updating the INCLUDE environment variable is not an option. |
||
− | |||
− | |||
E.g., if your header files are in the same directory as your source file, simply add the following line to the cpp_vis.vim file that is delivered to the vimfiles\ftplugin location: |
E.g., if your header files are in the same directory as your source file, simply add the following line to the cpp_vis.vim file that is delivered to the vimfiles\ftplugin location: |
||
⚫ | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
To include other relative paths, simply tweak the argument to expand(). For more info, see |
To include other relative paths, simply tweak the argument to expand(). For more info, see |
||
+ | {{help|filename-modifiers}} |
||
− | |||
− | [http://vimplugin.sf.net/cgi-bin/help?tag={{urlencode:filename-modifiers}} :help filename-modifiers] |
||
− | |||
− | |||
− | |||
− | Happy vimming! :) |
||
}} |
}} |
||
== Comments == |
== Comments == |
||
<!-- parsed by vimtips.py in 0.230847 seconds--> |
<!-- parsed by vimtips.py in 0.230847 seconds--> |
||
+ | [[Category:C plus plus]] |
||
+ | [[Category:Windows]] |
Revision as of 06:32, 23 July 2007
Tip: #835 - Have Intellisense search current directory
Created: December 17, 2004 14:24 Complexity: intermediate Author: Anand Hariharan Version: 6.0 Karma: 14/8 Imported from: Tip#835
I searched the tips database and didn't find this. Do not know the best place for this tip.
This tip is relevant to those who use the "Intellisense" functionality for vim (insenvim.sourceforge.net) for C++. This requires, as a part of its setup, that the paths for the all the included header files in a C++ file be present in the $INCLUDE variable. This is fine so long as all your header files are in one (invariant) location (say the MSVC's include directory). However, if your C++ file includes header files in locations relative to the current file, updating the INCLUDE environment variable is not an option.
E.g., if your header files are in the same directory as your source file, simply add the following line to the cpp_vis.vim file that is delivered to the vimfiles\ftplugin location:
let $INCLUDE = expand("%:p:h") . ";" . $INCLUDE
To include other relative paths, simply tweak the argument to expand(). For more info, see