vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

zig_build.vim (656B)


      1 " Vim compiler file
      2 " Compiler: Zig Compiler (zig build)
      3 " Upstream: https://codeberg.org/ziglang/zig.vim
      4 " Last Change: 2024 Apr 05 by the Vim Project (removed :CompilerSet definition)
      5 " 2026 May 12 by the Vim Project (removed comment)
      6 
      7 if exists('current_compiler')
      8   finish
      9 endif
     10 runtime compiler/zig.vim
     11 let current_compiler = 'zig_build'
     12 
     13 let s:save_cpo = &cpo
     14 set cpo&vim
     15 
     16 if exists('g:zig_build_makeprg_params')
     17   execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*'
     18 else
     19   CompilerSet makeprg=zig\ build\ $*
     20 endif
     21 
     22 let &cpo = s:save_cpo
     23 unlet s:save_cpo
     24 " vim: tabstop=8 shiftwidth=2 softtabstop=2 expandtab