Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromziglang/zig.vim

Vim configuration for Zig

License

NotificationsYou must be signed in to change notification settings

iarkn/zig.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

170 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File detection and syntax highlighting for thezig programming language.

Installation

If usingvim-plug (for Vim or Neovim)

  • Open vim config
  • WritePlug 'ziglang/zig.vim' inside theplug command:
callplug#begin('~/.vim/plugged')   Plug'ziglang/zig.vim'callplug#end()
  • Restart vim / reload vim config
  • type:PlugInstall

If usingVim:

  • Use Vim 8 or newer
  • mkdir -p ~/.vim/pack/plugins/start/
  • cd ~/.vim/pack/plugins/start/
  • git clone https://github.com/ziglang/zig.vim

If usingNeovim:

  • 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

Configuration

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 = 0

The default compiler which gets used by:make (:help :compiler for details)iszig_build and it runszig build. The other options are:

  • :compiler zig_test which runszig test on the current file.
  • :compiler zig_build_exe which runszig build-exe on the current file.
  • :compiler zig which requires that a subcommand is passed as an argumentand it runs on the current file.

About

Vim configuration for Zig

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script100.0%

[8]ページ先頭

©2009-2026 Movatter.jp