- Make sure your
vim –versionis 8+ - Make sure you have vim plugin manager like
Vundle - You can use the
.vimrcfrom here - Open vim and do
:PluginInstall - The above steps should be it!
- You can use the .net 6 version by adding this in the
vimrcfilelet g:OmniSharp_server_use_net6 = 1if previous steps didn’t work or - You can use the default mono version if you like instead of the .net 6 version, for which you may have to do like below.
- Install the mono dependencies
sudo pacman -S mono mono-msbuild - Instead of the line
let g:OmniSharp_server_use_net6 = 1you should havelet g:OmniSharp_server_use_mono = 1in your.vimrcfile. - You will anyway be asked to install the server every time this is updated.
- Anytime in vim command mode you can do
:OmniSharpStatusto check if the server is running. - To verify, say in
Program.cs, type likeSystem., you should see the methods likeConsoleand all. TypeCtrl-NorCtrl-Pto step over them. - When stepping over the methods, you should see the method signatures for each.
C# development with Vim on Arch
· One min read
