Home

Awesome

zig.vim

File detection and syntax highlighting for the zig programming language.

Installation

If using vim-plug (for Vim or Neovim)

call plug#begin('~/.vim/plugged')
   Plug 'ziglang/zig.vim'
call plug#end()

If using Vim:

If using Neovim:

Configuration

This plugin enables automatic code formatting on save by default using zig fmt. To disable it, you can use this configuration in vimrc:

let g:zig_fmt_autosave = 0

The default compiler which gets used by :make (:help :compiler for details) is zig_build and it runs zig build. The other options are: