diff options
author | Wu, Zhenyu <wuzhenyu@ustc.edu> | 2024-03-31 19:42:39 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-31 19:42:39 +0200 |
commit | a55a22a1a30f8f37633ed78ea25a393d11e250f2 (patch) | |
tree | 85fc917cb0b9b4f0c9ebc51c9fbdcbcf38a826f0 /runtime | |
parent | 84ce55001af80d89245c4dd051c6f809389df62f (diff) |
patch 9.1.0245: filetype: zsh theme, history and zunit files are not recognizedv9.1.0245
Problem: filetype: zsh theme, history and zunit files are not
recognized.
Solution: Detect '.zsh_history', '*.zsh-theme' and '*.zunit' as zsh
(Wu, Zhenyu)
closes: #14366
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index e1d7732582..fe450b8b13 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2047,8 +2047,8 @@ au BufNewFile,BufRead *.zs setf zserio " Z-Shell script (patterns ending in a star further below) au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks setf zsh -au BufNewFile,BufRead .zshrc,.zshenv,.zlogin,.zlogout,.zcompdump setf zsh -au BufNewFile,BufRead *.zsh setf zsh +au BufNewFile,BufRead .zshrc,.zshenv,.zlogin,.zlogout,.zcompdump,.zsh_history setf zsh +au BufNewFile,BufRead *.zsh,*.zsh-theme,*.zunit setf zsh " Scheme ("racket" patterns are now separate, see above) au BufNewFile,BufRead *.scm,*.ss,*.sld setf scheme |