Lilja / vim-chezmoi

Let's you apply files on write to chezmoi
11 stars 1 forks source link

vim-chezmoi

vim-chezmoi is a plugin for vim to apply the dotfile you are editing to chezmoi, on :w.

It does not currently work with opening the source files directly(i.e vim ~/.local/share/dotfile), only chezmoi edit dotfile.

Install with vim-plug

" ~/.vimrc
Plug 'Lilja/vim-chezmoi'

and then

" ~/.vimrc
let g:chezmoi = "enabled"

Usage

First install it using your favorite plugin manager. Then, to edit a dotfile, run chezmoi edit <dotfile>, where <dotfile> is a dotfile, like ~/.bashrc. Now, all writes being done to that file are applied(chezmoi apply) automatically.

Arguments

vim-chezmoi has two options. You will very likely not need it.