How can I use VIM to do .Net Development [closed]

回眸只為那壹抹淺笑 提交于 2019-12-03 04:11:56

问题


Visual Studio is the defacto editor, but what are our other options that avoid a heavy UI while still integrating with a C# build chain?

Looking for options which preferably use vi or vim directly, and those which emulate some or all of the functionality of vi and/or vim.


回答1:


I'm not connected with the company in any way, but I've heard very good things about ViEmu. If the price were a little lower, I'd get it myself, because I love the editing power of Vim.




回答2:


Here is a guide on Vim C# compiling.


In response to the comments -

It sounds like your goal is to have a fully functional IDE that works cross platform for C# development, not necessarily to use VIM. If that's the case, you can use MonoDevelop on all platforms (including Windows, but that's a bit trickier), and since you're probably already using the mono compilers on your other platforms, this might be a nicer option.




回答3:


MSBuild is a very powerful analog to Ant.

Use msbuild project files to manage your .NET projects, and write a nmake file that calls msbuild.

Map your vi make command to nmake

You can just use :make to do a build




回答4:


Right now there's now something called OpenIDENet from ContinuousTests https://github.com/continuoustests/OpenIDE This along with AutoTestNet and EditorEngine provide a seamless Test Driven Development tooling for VIM.

EditorEngine gives AutoTest capabilities & commandline interactions to VIM ( ie. adding references, new projects to a solution etc. )

AutoTest does the heavy lifting by compiling on save; as it watches a directory. It also feeds back when tests fail.

The main page provides a video demonstration & howto for this tooling. Also on windows NuGet is now available to be used from the commandline too.

I must point out that I do not work for continuoustests or get any money or favor from them, it's just that they produce awesome software for developing with.




回答5:


If you are on the latest versions of VS, then the solution files can be built with MSBuild, which is basically a NAnt equivalent.

Otherwise, call csc to compile the files yourself.




回答6:


I use nant as a build file (very simple and flexible) then call :set makerpg=nant\ compile.all

Then whenever you wan't to compile just type :mak

This can be extended with custom error formats etc.



来源:https://stackoverflow.com/questions/983640/how-can-i-use-vim-to-do-net-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!