Skip to content

Instantly share code, notes, and snippets.

@karlgluck
Last active September 21, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlgluck/692d67db74bed1b5db123d0b35f03905 to your computer and use it in GitHub Desktop.
Save karlgluck/692d67db74bed1b5db123d0b35f03905 to your computer and use it in GitHub Desktop.
Sadly, Gvim + OmniSharp-vim is just not worth the hassle on Windows. Locks up for 1s+ every cursor movement.

How to set up Gvim + OmniSharp-vim on Windows 10

Install Gvim

Right-click the C:\Program Files (x86)\Vim folder and change its Security permissions to allow full control & editing -> You shouldn't have to give admin permissions to do anything else in this guide

Install pathogen.vim

Clone OmniSharp-vim to C:\Program Files (x86)\Vim\vimfiles\bundle\omnisharp-vim

Get Build Tools for Visual Studio 2017 in order to get msbuild.exe Under Other Tools and Frameworks

In the installer, pick .NET Core Build Tools

Open terminal:

> set PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin
> cd "C:\Program Files (x86)\Vim\vimfiles\bundle\omnisharp-vim\server"
> msbuild /t:Clean;Build /p:Configuration=Release

Install x86 Python 2.7

Install vim-dispatch

Install syntastic

Add a bunch of stuff to your $HOME/_vimrc

Open any .CS file, wait for OmniSharp to load, and be sad because any cursor movement causes the program to lock for more than a second and Autocomplete still doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment