diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-01-26 06:58:57 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2026-01-26 07:00:32 +0800 |
| commit | d982c008467773c8982cc07977d649a2c5198b4b (patch) | |
| tree | d6c06f4075598de4cf7daabebcb8935521793278 /runtime/ftplugin | |
| parent | 4076994db6252e79400e4dd5498431d52e938b5b (diff) | |
vim-patch:9.1.2110: filetype: skhd files are not recognized
Problem: filetype: skhd files are not recognized
Solution: Detect .skhdrc and skhdrc as skhd filetype,
include a syntax and filetype plugin, add syntax tests
(Kiyoon Kim)
Add syntax highlighting for skhd (simple hotkey daemon for macOS)
configuration files. Includes filetype detection for skhdrc and
.skhdrc files.
Reference:
- https://github.com/asmvik/skhd
closes: vim/vim#19235
https://github.com/vim/vim/commit/e5f61842b509acea91c63923e60987ad7ae123dd
Co-authored-by: Kiyoon Kim <kiyoon@users.noreply.github.com>
Diffstat (limited to 'runtime/ftplugin')
| -rw-r--r-- | runtime/ftplugin/skhd.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/ftplugin/skhd.vim b/runtime/ftplugin/skhd.vim new file mode 100644 index 0000000000..ecc932f581 --- /dev/null +++ b/runtime/ftplugin/skhd.vim @@ -0,0 +1,20 @@ +" Vim filetype plugin file +" Language: skhd(simple hotkey daemon for macOS) configuration file +" Maintainer: Kiyoon Kim <https://github.com/kiyoon> +" Last Change: 2026 Jan 23 + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo&vim + +setlocal comments=:# commentstring=#\ %s +setlocal formatoptions-=t formatoptions+=croql + +let b:undo_ftplugin = "setl com< cms< fo<" + +let &cpo = s:cpo_save +unlet s:cpo_save |
