Mercurial > vim
annotate runtime/compiler/cs.vim @ 23314:7d09c9cdaab8 v8.2.2202
patch 8.2.2202: write file test still fails on MS-Windows
Commit: https://github.com/vim/vim/commit/16204962c7ad7380a40f0855443303ad16114e2b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 23 22:40:11 2020 +0100
patch 8.2.2202: write file test still fails on MS-Windows
Problem: Write file test still fails on MS-Windows.
Solution: Set fileformat with the :edit command
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Dec 2020 22:45:03 +0100 |
parents | 2704c4e3e20a |
children | e1df51f68736 |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
17571 | 2 " Compiler: Microsoft Visual Studio C# |
3 " Maintainer: Yichao Zhou (broken.zhou@gmail.com) | |
4 " Previous Maintainer: Joseph H. Yao (hyao@sina.com) | |
5 " Last Change: Jul 22, 2019 | |
7 | 6 |
7 if exists("current_compiler") | |
8 finish | |
9 endif | |
10 let current_compiler = "cs" | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
11 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
12 set cpo&vim |
7 | 13 |
14 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
15 command -nargs=* CompilerSet setlocal <args> | |
16 endif | |
17 | |
18 CompilerSet errorformat& | |
2788 | 19 CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m, |
20 \%trror%*[^:]:\ %m, | |
21 \%tarning%*[^:]:\ %m | |
7 | 22 |
17571 | 23 CompilerSet makeprg=csc\ %:S |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
24 |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
25 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2788
diff
changeset
|
26 unlet s:keepcpo |