mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
runtime: Remove fallback :CompilerSet definition from compiler plugins
The :CompilerSet command was added in version Vim 6.4 which was released
twenty years ago. Other runtime files do not support versions of that
vintage so it is reasonable to remove this fallback command definition
now.
closes: vim/vim#14399
408281e16a
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
31 lines
594 B
VimL
31 lines
594 B
VimL
" Vim compiler file
|
|
" Compiler: Go
|
|
" Maintainer: David Barnett (https://github.com/google/vim-ft-go)
|
|
" Last Change: 2014 Aug 16
|
|
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
|
|
|
|
if exists('current_compiler')
|
|
finish
|
|
endif
|
|
let current_compiler = 'go'
|
|
|
|
if exists(':CompilerSet') != 2
|
|
command -nargs=* CompilerSet setlocal <args>
|
|
endif
|
|
|
|
let s:save_cpo = &cpo
|
|
set cpo-=C
|
|
|
|
CompilerSet makeprg=go\ build
|
|
CompilerSet errorformat=
|
|
\%-G#\ %.%#,
|
|
\%A%f:%l:%c:\ %m,
|
|
\%A%f:%l:\ %m,
|
|
\%C%*\\s%m,
|
|
\%-G%.%#
|
|
|
|
let &cpo = s:save_cpo
|
|
unlet s:save_cpo
|
|
|
|
" vim: sw=2 sts=2 et
|