Skip to content

Commit

Permalink
docs: Use modeline to set filetype in VIM
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusYip authored and twpayne committed Jun 12, 2022
1 parent 6b4741a commit 87c1a91
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ merge-all` will help you resolve any differences.

If you chose to edit files in the source state and you're using VIM then
[`github.com/alker0/chezmoi.vim`](https://github.com/alker0/chezmoi.vim) gives
you syntax highlighting, however you edit your files.
you syntax highlighting, however you edit your files. Besides using the
plugin, you can use modeline to tell VIM the correct filetype. For example,
put `# vim: filetype=zsh` at the top of `dot_zshrc`, and VIM will treat
`dot_zshrc` as zsh file.

## Why doesn't chezmoi use symlinks like GNU Stow?

Expand Down

0 comments on commit 87c1a91

Please sign in to comment.