Using gvim and Visual Studio side by side

28 views
Skip to first unread message

Väinö Leppänen

unread,
Jul 28, 2011, 12:16:39 AM7/28/11
to v...@vim.org
Hi,

I've lately been "forced" to work a lot on Windows and with Visual Studio 2008 (VS08) and in fact
I think that VS08 is a pretty good IDE, but in the words of Bram Moolenaar: "but it's not Vim".
I've been separately opening files to gVim while at the same time having them open in VS08;
I perform the stuff that's easy to do in Vim in Gvim and the IDE tasks in VS08.

The question becomes: is there an easy way to open a file in gVim that's already open in VS08?
By easy I do not mean: go to explorer, find the file ...
One click option or something like that, is what I'm looking for.

Much thanks for all the responses ..

Väinö (yes, that's a name)

Arthur Lee

unread,
Jul 28, 2011, 12:23:53 AM7/28/11
to vim...@googlegroups.com
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


How about this script----visual_studio.vim 
Link:

Wiki:


-- 
Arthur Lee
Sent with Sparrow

Tobbe Lundberg

unread,
Jul 28, 2011, 1:55:59 AM7/28/11
to vim...@googlegroups.com, v...@vim.org
If you're using VisualStudio I would very much want to recommend ViEmu [1]. I've used it a lot and now I couldn't see myself not using it! It's great!

[1] http://www.viemu.com/

Ben Fritz

unread,
Jul 28, 2011, 11:36:44 AM7/28/11
to vim_use
You'll need to use the client-server interface to Vim.

:he client-server

It's easy to set up a shortcut in your Windows "Send To" context menu,
so that you can then send items to a specific Vim instance, using the
client-server commandline arguments inside the shortcut. Then sending
files to the Vim inside Visual Studio is just a right-click away.

http://vim.wikia.com/wiki/Add_Vim_to_Windows_Send_To_menu

The "launch files in tabs" link on that page accomplishes its task
using the client-server interface if you need an example.

David Fishburn

unread,
Jul 28, 2011, 12:55:07 PM7/28/11
to vim...@googlegroups.com
I second this plugin.

If you don't have a Vim that has Python already installed, I can bundle up my own and send it to you.  I routinely build it myself.  I suspect Cream's build of Vim might also have Python configured.

Anyway, it can kick off builds as well and pushing the current file into VS and retrieve the current file in VS.

The build output goes into the Quickfix window for easy opening.

Dave

Ben Fritz

unread,
Jul 28, 2011, 2:20:55 PM7/28/11
to vim_use, mgra...@plan10.com


On Jul 28, 11:55 am, David Fishburn <dfishburn....@gmail.com> wrote:
> On 7/28/2011 12:23 AM, Arthur Lee wrote:
>
> > On Thursday, July 28, 2011 at 12:16 PM, V�in� Lepp�nen wrote:
>
> > How about this script----visual_studio.vim
> > Link:
> >http://www.vim.org/scripts/script.php?script_id=864
> > <http://www.vim.org/scripts/script.php?script_id=864>
>
> I second this plugin.
>
> If you don't have a Vim that has Python already installed, I can bundle
> up my own and send it to you.  I routinely build it myself.  I suspect
> Cream's build of Vim might also have Python configured.
>
> Anyway, it can kick off builds as well and pushing the current file into
> VS and retrieve the current file in VS.
>
> The build output goes into the Quickfix window for easy opening.
>

That does look like a nice plugin, if you use Visual Studio a lot!

From reading the docs, the main thing it looks like is missing, is
integration with the debugger. Vim allows this sort of thing with
the :sign feature, I wonder if it could be added?

Tony Mechelynck

unread,
Jul 30, 2011, 10:39:43 PM7/30/11
to vim...@googlegroups.com, Väinö Leppänen
On 28/07/11 06:16, V�in� Lepp�nen wrote:
[...]
> V�in� (yes, that's a name)

Hm... let me guess... would that by any chance be a diminutive of
V�in�m�inen?


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
145. You e-mail your boss, informing him you'll be late.

Reply all
Reply to author
Forward
0 new messages