Trying To Get Vim Intellisense Working. Help?!

Setup: I’m running Windows 7 x64 with gVim installed. I have Visual Studio 2008 and 2010 installed, and am trying to get vim intellisense up and running. This plugin provides intellisense features for languages such as C#, C++, Java, and much more. Unfortunately, I haven’t been able to get it working yet. Here’s what I have done to try, so far:

The installation wizard seemed nice. It let me select the plugins i wanted and my Vim directory.

image

I did get an error while installing this, saying there was a problem installing the C# intellisense. Opening the “cserrors.log” file in the install folder (as the error message told me to do) revealed this message:

"Regasm is not in path. Error in installaing C# Intellisense plugin. Add regasm in path and then run reg.bat in the current directory!"

That’s an easy fix – just open a Visual Studio Command Prompt and you’ll have the tool available:

image

then you can run the “reg.bat” file from the “intellisense” installation folder:

image

After installing, I was getting strange errors from Vim, when pressing ctl-space to bring up the intellisense window:

error detected while processing function IN_ShowVISDialog. Library call failed for StartVISDialog()

A bit of digging around on the vim intellisense website brought me to the C# FAQ which says:

You need Microsof.NET version v1.1.4322 for intellisense to work.

I downloaded of .NET 1.1 and SP1 later and it said there are incompatibilities with IIS on Win7 x64. I installed anyway, but to make sure nothing was messaged up, I re-ran the register IIS command for .net 4

C:WindowsMicrosoft.NETFrameworkv4.0.30319>aspnet_regiis –i

After that… I’m still getting the same error messages about not being able to call the StartVISDialog() method, as shown in the previous screen shot. Has anyone been able to get Vim Intellisense working with a setup like mine? Do I need a previous version of visual studio (like 2005?) for this to work? or ??? Any help is greatly appreciated.


Post Footer automatically generated by Add Post Footer Plugin for wordpress.

About Derick Bailey

Derick Bailey is an entrepreneur, problem solver (and creator? :P ), software developer, screecaster, writer, blogger, speaker and technology leader in central Texas (north of Austin). He runs SignalLeaf.com - the amazingly awesome podcast audio hosting service that everyone should be using, and WatchMeCode.net where he throws down the JavaScript gauntlets to get you up to speed. He has been a professional software developer since the late 90's, and has been writing code since the late 80's. Find me on twitter: @derickbailey, @mutedsolutions, @backbonejsclass Find me on the web: SignalLeaf, WatchMeCode, Kendo UI blog, MarionetteJS, My Github profile, On Google+.
This entry was posted in .NET, C#, Tools and Vendors, Vim, Visual Studio. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • http://simpleprogrammer.com John Sonmez

    Hi Derrick, I haven’t tried this yet, but just shooting off the cuff here, something tells me that this program might be depending on you having visual studio directories in your environment path.

    The problem with it expecting regasm to be there leads me to think this. Perhaps when it is trying to call StartVISDialog it is shelling out to use a tool it is expecting.

  • http://www.lostechies.com/members/derick.bailey/default.aspx derick.bailey

    @John,

    thought about that previously, and ran gvim from a VS2008 command prompt, but still get the same error message.

    the mroe i think about this, the more likely it seems that i need a previous version of VS installed… after all, i think this plugin is calling out to the VS Intellisense API directly.

  • http://simpleprogrammer.com John Sonmez

    You’ve done all this I am assuming?

    1. Copy the file cs_vis.vim into your $VIM\vimfiles\ftplugin directory.
    2. Copy the file csft.dll into your $VIM_INTELLISENSE directory.
    3. Copy CSVimHelper.dll,reg.bat to your $VIM_INTELLISENSE directory.
    4. Run reg.bat to register the dlls. You need to set the directory gacutil.exe
    in the path. You need the latest version of .NET SDK.

  • http://www.lostechies.com/members/derick.bailey/default.aspx derick.bailey

    @John,

    all of that is done automatically by the installation package. However, to make sure it was done right, I went and looked for every file and environment varaible mentioned, and yes, it was all done correctly.

  • dglaser

    If you haven’t add C:\Windows\Microsoft.NET\Framework\v2.0.50727 and C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin to your PATH variable.

    Also you need to create a VIM_INTELLISENSE user or system variable with value set to C:\Program Files\vim\Intellisense.

  • http://charlesstrahan.com Charles Strahan

    Derick, did you ever get this to work? Intellisense in vim sounds pretty nice :).

    -Charles

  • Chad

    Yeah, I am having the exact same problem as the poster. Exact same setup to: Win7x64 with VS2008 and VS2010

    If someone knows how to get this working I would appreciate it.

    I e-mailed the component authors, hopefully they will get back to me.

  • scott qian

    I have same problem, how do you fix this?

  • http://profiles.google.com/jasonimison Jason Imison

    OmniSharp works and is in active development. https://github.com/nosami/Omnisharp