(Fix typos) |
(Remove html character entities) |
||
Line 19: | Line 19: | ||
<pre> |
<pre> |
||
function! RebuildAllVC() |
function! RebuildAllVC() |
||
− | python |
+ | python << EOF |
import win32com.client |
import win32com.client |
||
obj = win32com.client.GetActiveObject('MSDev.Application') |
obj = win32com.client.GetActiveObject('MSDev.Application') |
Revision as of 09:16, 29 September 2008
Tip 719 Printable Monobook Previous Next
created May 14, 2004 · complexity intermediate · author Jens Berlips · version 6.0
tip 1
This tip has some similarities with script#864.
If you want to rebuild the entire project in Visual Studio 6++:
function! RebuildAllVC() python << EOF import win32com.client obj = win32com.client.GetActiveObject('MSDev.Application') obj.RebuildAll() EOF endfunction
There are a lot more things you can do, check out: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcug98/html/_asug_application_object.asp the application in that link is the "obj" in the code.
tip 2
Using VisVim and the new VIM6.3 *-P* option you can get vim to be your default editor inside VS6.
Example:
"gvim -P Microsoft Visual C++"
Note: If VS6 hangs Vim won't close, as a consequence there will still be an instance in the taskbar. Kill it if you wan't to restart VS6 and use VIM!