mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
vim-patch:077d1d2: runtime(make): add compiler/make.vim to reset compiler plugin settings
closes: vim/vim#15645
077d1d2cff
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Co-authored-by: K.Takata <kentkt@csc.jp>
This commit is contained in:
parent
57db94235c
commit
608ef83fc6
@ -4,6 +4,8 @@ They are used with the ":compiler" command.
|
|||||||
These scripts usually set options, for example 'errorformat'.
|
These scripts usually set options, for example 'errorformat'.
|
||||||
See ":help write-compiler-plugin".
|
See ":help write-compiler-plugin".
|
||||||
|
|
||||||
|
To undo the effect of a compiler plugin, use the make compiler plugin.
|
||||||
|
|
||||||
If you want to write your own compiler plugin, have a look at the other files
|
If you want to write your own compiler plugin, have a look at the other files
|
||||||
for how to do it, the format is simple.
|
for how to do it, the format is simple.
|
||||||
|
|
||||||
|
13
runtime/compiler/make.vim
Normal file
13
runtime/compiler/make.vim
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
" Vim compiler plugin
|
||||||
|
"
|
||||||
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
||||||
|
" Last Change: 2024 Sep 10
|
||||||
|
" Original Author: Konfekt
|
||||||
|
"
|
||||||
|
" This compiler plugin is used to reset previously set compiler options.
|
||||||
|
|
||||||
|
if exists("g:current_compiler") | unlet g:current_compiler | endif
|
||||||
|
if exists("b:current_compiler") | unlet b:current_compiler | endif
|
||||||
|
|
||||||
|
CompilerSet makeprg&
|
||||||
|
CompilerSet errorformat&
|
@ -1262,6 +1262,7 @@ not "b:current_compiler". What the command actually does is the following:
|
|||||||
|
|
||||||
For writing a compiler plugin, see |write-compiler-plugin|.
|
For writing a compiler plugin, see |write-compiler-plugin|.
|
||||||
|
|
||||||
|
Use the |compiler-make| plugin to undo the effect of a compiler plugin.
|
||||||
|
|
||||||
DOTNET *compiler-dotnet*
|
DOTNET *compiler-dotnet*
|
||||||
|
|
||||||
@ -1277,7 +1278,6 @@ Example: limit output to only display errors, and suppress the project name: >
|
|||||||
let dotnet_show_project_file = v:false
|
let dotnet_show_project_file = v:false
|
||||||
compiler dotnet
|
compiler dotnet
|
||||||
<
|
<
|
||||||
|
|
||||||
GCC *quickfix-gcc* *compiler-gcc*
|
GCC *quickfix-gcc* *compiler-gcc*
|
||||||
|
|
||||||
There's one variable you can set for the GCC compiler:
|
There's one variable you can set for the GCC compiler:
|
||||||
@ -1294,6 +1294,13 @@ Commonly used compiler options can be added to 'makeprg' by setting the
|
|||||||
g:javac_makeprg_params variable. For example: >
|
g:javac_makeprg_params variable. For example: >
|
||||||
let g:javac_makeprg_params = "-Xlint:all -encoding utf-8"
|
let g:javac_makeprg_params = "-Xlint:all -encoding utf-8"
|
||||||
<
|
<
|
||||||
|
GNU MAKE *compiler-make*
|
||||||
|
|
||||||
|
Since the default make program is "make", the compiler plugin for make,
|
||||||
|
:compiler make, will reset the 'makeprg' and 'errorformat' option to
|
||||||
|
the default values and unlet any variables that may have been set by a
|
||||||
|
previous compiler plugin.
|
||||||
|
|
||||||
GROFF *quickfix-groff* *compiler-groff*
|
GROFF *quickfix-groff* *compiler-groff*
|
||||||
|
|
||||||
The GROFF compiler plugin uses the mom macro set (documented in the groff_mom
|
The GROFF compiler plugin uses the mom macro set (documented in the groff_mom
|
||||||
|
Loading…
Reference in New Issue
Block a user