sponsor Vim development Vim logo Vim Book Ad

basic Tip #368: Use gvim in VS.Net

 tip karma   Rating 41/26, Viewed by 2470 

created:   November 8, 2002 16:52      complexity:   basic
author:   Mark Fernandes      as of Vim:   5.7

This tip presumes you have both VS.Net (Developer Studio.Net) and gvim installed, and know where gvim is located on your system.

- Create a solution in VS.Net, any project type will do.
- In the solution explorer (View->Solution or Ctrl + R) you should see a list of files (click on the "Solution Explorer" tab if you do not see the file list).
- Right click on any of the files and choose "Open With...", this brings up the Open With dialog.
- Click on "Add..." this brings up the Add Program dialog.
- Click on "Browse..." and point the Browse dialog to your gvim location.
- You have now added gvim to the list of editors, you may also select gvim to be the default editor for that file type.

You may need to do this for all file types you wish to edit with gvim. And yes you still have VS.Net open the file in its own editor.
Of course if you want to reverse changes simply remove gvim from the list of editors and why would you want to do that? :)

Enjoy!

 rate this tip  Life Changing Helpful Unfulfilling 

<<What is this $VIMRUNTIME ? | Comment/UnComment visually selected text >>

Additional Notes

[email protected], January 22, 2003 4:46
Slightly disappointing is that VS.net opens the window in the middle of the screen and at the location and size of the its "source pane". How can I adjust where and of what size is the vim window when it opens ?
[email protected], February 28, 2003 12:32
in _vimrc:

gui
winpos 33 0
set lines=100
[email protected], July 22, 2003 13:03
VS.Net insists on opening each file in a new vim window, is there a way to force it to open each file in the same window?
[email protected], January 26, 2004 17:39
Yes, what would really be nice is vim commands within the VS.NET environment, w/o opening a new window.
[email protected], October 17, 2004 2:42
in _vimrc:

gui
winpos 33 0
set lines=100

You can restrict this to files of a certain type by adding the above lines to a .vim file in ur ftplugin directory.
for example in cpp.vim for c++ files in visual studio,   php.vim to size vim for dreamweaver or whatever.
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 [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo