vim-zig (zig.vim) adds zig language support for Vim.
https://github.com/ziglang/zig.vim| Installer Source| Releases (json) (tab)
vim-zig (zig.vim) adds zig language support for Vim.
https://github.com/ziglang/zig.vim| Installer Source| Releases (json) (tab)
To update (replacing the current version) run webi vim-zig.
vim-zigprovides integration withzls,zig fmt, and other zig tooling.
You'll also need to install ALE (part of
vim-essentials) or
syntastic first.
~/.vim/pack/plugins/start/zig.vim/
~/.vim/plugins/start/zig.vim
Remove the previous version of zig.vim, if any:
rm -rf ~/.vim/pack/plugins/start/zig.vim
Install zig.vim as a Vim8 package with git:
mkdir -p ~/.vim/pack/plugins/start/
git clone --depth=1 --single-branch master \
https://github.com/zig-lang/zig.vim \
~/.vim/pack/plugins/start/zig.vim
Create ~/.vim/plugins/zig.vim, as follows:
" Reasonable defaults for zig.vim
" run zig fmt on save
let g:zig_fmt_autosave = 1