about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-07-11 09:18:20 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-07-13 23:22:19 +0000
commitca2ab5e446bcf40e18de4390ee1b47c8295b5728 (patch)
tree660a723a9ae314d877ad32c5970d6c257a3ad1a8 /Doc
parent35ffe36318955d03fca3df0d34a0997970cfc6a3 (diff)
downloadzsh-ca2ab5e446bcf40e18de4390ee1b47c8295b5728.tar.gz
zsh-ca2ab5e446bcf40e18de4390ee1b47c8295b5728.tar.xz
zsh-ca2ab5e446bcf40e18de4390ee1b47c8295b5728.zip
35775: New zsh-specific yodl vim syntax highlighting.
To try this, see the instructions at the top of Util/zyodl.vim (in the comment).

* Util/zyodl.vim: New syntax highlighting file.
* Doc/Zsh/.vimrc: New file, hooks up zyodl.vim for automatic loading.
* Etc/zsh-development-guide: Namedrop zyodl.vim for discoverability.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/.vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/Zsh/.vimrc b/Doc/Zsh/.vimrc
new file mode 100644
index 000000000..6544cd450
--- /dev/null
+++ b/Doc/Zsh/.vimrc
@@ -0,0 +1,4 @@
+augroup filetypedetect
+  autocmd BufRead,BufNewFile **/Doc/Zsh/*.yo set ft=zyodl | source <sfile>:h:h:h/Util/zyodl.vim
+  "autocmd BufRead,BufNewFile **/Etc/FAQ.yo  set ft=zyodl | source <sfile>:h:h:h/Util/zyodl.vim
+augroup END