Vim errorformat for Visual Studio

后端 未结 7 1235
南方客
南方客 2021-01-30 17:18

I want to use Vim\'s quickfix features with the output from Visual Studio\'s devenv build process or msbuild.

I\'ve created a batch file called build.bat which executes

7条回答
  •  失恋的感觉
    2021-01-30 17:35

    I have a blog post which walks through all the details of getting C# projects building in Vim, including the error format. You can find it here: http://kevin-berridge.blogspot.com/2008/09/vim-c-compiling.html

    In short you need the following:

    :set errorformat=\ %#%f(%l\\\,%c):\ %m
    :set makeprg=msbuild\ /nologo\ /v:q\ /property:GenerateFullPaths=true
    

提交回复
热议问题