forked fromziglang/zig.vim
- Notifications
You must be signed in to change notification settings - Fork0
iarkn/zig.vim
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
File detection and syntax highlighting for thezig programming language.
If usingvim-plug (for Vim or Neovim)
- Open vim config
- Write
Plug 'ziglang/zig.vim'inside theplugcommand:
callplug#begin('~/.vim/plugged') Plug'ziglang/zig.vim'callplug#end()
- Restart vim / reload vim config
- type
:PlugInstall
- Use Vim 8 or newer
mkdir -p ~/.vim/pack/plugins/start/cd ~/.vim/pack/plugins/start/git clone https://github.com/ziglang/zig.vim
mkdir -p ~/.local/share/nvim/site/pack/plugins/start/cd ~/.local/share/nvim/site/pack/plugins/start/git clone https://github.com/ziglang/zig.vim
This plugin enables automatic code formatting on save by default usingzig fmt. To disable it, you can use this configuration in vimrc:
let g:zig_fmt_autosave = 0The default compiler which gets used by:make (:help :compiler for details)iszig_build and it runszig build. The other options are:
:compiler zig_testwhich runszig teston the current file.:compiler zig_build_exewhich runszig build-exeon the current file.:compiler zigwhich requires that a subcommand is passed as an argumentand it runs on the current file.
About
Vim configuration for Zig
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- Vim Script100.0%