Use command ./build.sh to compile omnisharp-roslyn server (omnisharp-roslyn will be compiled with local environment mono)
Add Plug 'prabirshrestha/asyncomplete.vim' and Plug 'OmniSharp/omnisharp-vim' in .vimrc and do :PlugInstall
Copy the following script to .vimrc
Don’t forget to change the value of let g:OmniSharp_server_path = '' to the absolute path of OmniSharp.exe which built just now.
If you have ale plugin installed, make sure to set ale_linters with OmniSharp, otherwise you’ll got many lint errors.
Unity3D development in MacVim
Right click *.cs file from the Finder, select “Open With” -> “MacVim” as the default Editor in your system.
Set Unity3D Preferences -> External Tools -> External Script Editor to “Open by file extension”.
Create/Delete/Rename/Move C# script files from Unity3D Editor (Which will handle the .meta files).
Double click C# script in Unity3D project view to open MacVim for development.
If you don’t want to set MacVim as system default editor. You can also set MacVim.app as Unity3D default editor. But if you double-click scripts in Unity3D project view multiple times, Unity3D will create multiple MacVim applications (You’ll see them while pressing Command + Tab).
That’s what we don’t want to see. We only want to have one MacVim application when press Command + Tab and can switch workspaces with Command + ~. The following steps can help.
Create a bash script open_macvim.sh which start MacVim. Its content can simply be mvim $@