C# development with Vim on Arch

Ragavendra B.N.

Ragavendra B.N.
- Make sure your
vim –version
is 8+ - Make sure you have vim plugin manager like
Vundle
- You can use the
.vimrc
from here - Open vim and do
:PluginInstall
- The above steps should be it!
- You can use the .net 6 version by adding this in the
vimrc
filelet g:OmniSharp_server_use_net6 = 1
if 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 = 1
you should havelet g:OmniSharp_server_use_mono = 1
in your.vimrc
file. - You will anyway be asked to install the server every time this is updated.
- Anytime in vim command mode you can do
:OmniSharpStatus
to check if the server is running. - To verify, say in
Program.cs
, type likeSystem.
, you should see the methods likeConsole
and all. TypeCtrl-N
orCtrl-P
to step over them. - When stepping over the methods, you should see the method signatures for each.