zprint.vim

July 19, 2022 ยท View on GitHub

A Vim plugin that runs zprint when you save.

Most of the code is based off vim-go.

Install

You must install zprint first.

If you use Homebrew, you can do it with brew install bfontaine/utils/zprint.

Pathogen

git clone https://github.com/bfontaine/zprint.vim ~/.vim/bundle/zprint.vim

VimPlug

Plug 'bfontaine/zprint.vim'

Vundle

Plugin 'bfontaine/zprint.vim'

Manual installation

Clone this repository, then copy the files from autoload and ftplugin in the same directories under ~/.vim.

Configuration

The variable g:zprint#options_map will be passed to the zprint call as its options map.

" use the project-specific .zprintrc instead of the global one, if available
let g:zprint#options_map = '{:search-config? true}'

The variable g:zprint#make_autocmd determines whether to create the autocmd to run zprint when a file is saved or not. Defaults to v:true.

let g:zprint#make_autocmd = v:false