Peter's Blog

Redefining the Impossible

Vim with Visual Studio


I'm doing some legacy work using Visual Studio 5 (cannot upgrade as the project uses a library that won't build with anything later: that's third party tools for you). I need a real editor so I've set it up to launch Vim on the current file when I bang F8. In the tool settings I put:

Command:

C:\Bin\Vim\vim63\gvim.exe

Arguments:

--remote-silent +$(CurLine) "$(FilePath)"

The Vim incantation tells it to use an existing vim process if it can find it and tells it to go to the same line in the file as I was at in Visual Studio.

I could install the vimole thing and have an ole interface but from my recollection it doesn't add much more than the above, which is simple and robust and works with my custom Vim build that includes python.


Filed under: vim

Scourer Says:

over 3 years ago

Did you ever use the Vim cleaning product?

Dean.

Peter Says:

over 3 years ago

I prefer Jif (now called Cif). It's good for cleaning your hands after working on the car.

Peter

Anonymous Says:

over 2 years ago

On Visual Studio .Net the arguments are:

--remote-silent +$(CurLine) "$(ItemPath)"

Have Your Say

I welcome constructive comments or questions but I reserve the right to delete any comments that displease me.

Who are you?

(Optional) If you enter an email address here I might email you back. Your email address will not be sold to spammers or shown anywhere

What do you have to say?