Update 2024-01-24 08:30 OpenBSD/amd64-x13
This commit is contained in:
1
.vim/pack/plugins/start/vim-sxhkdrc/README.md
Normal file
1
.vim/pack/plugins/start/vim-sxhkdrc/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Original author: [Steven Allen](https://github.com/Stebalien).
|
||||
5
.vim/pack/plugins/start/vim-sxhkdrc/ftdetect/sxhkdrc.vim
Normal file
5
.vim/pack/plugins/start/vim-sxhkdrc/ftdetect/sxhkdrc.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
autocmd BufNewFile,BufRead sxhkdrc,*.sxhkdrc set ft=sxhkdrc
|
||||
11
.vim/pack/plugins/start/vim-sxhkdrc/ftplugin/sxhkdrc.vim
Normal file
11
.vim/pack/plugins/start/vim-sxhkdrc/ftplugin/sxhkdrc.vim
Normal file
@@ -0,0 +1,11 @@
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
|
||||
setlocal cms=#%s
|
||||
|
||||
if exists('b:undo_ftplugin')
|
||||
let b:undo_ftplugin .= "|setlocal commentstring<"
|
||||
else
|
||||
let b:undo_ftplugin = "setlocal commentstring<"
|
||||
endif
|
||||
26
.vim/pack/plugins/start/vim-sxhkdrc/syntax/sxhkdrc.vim
Normal file
26
.vim/pack/plugins/start/vim-sxhkdrc/syntax/sxhkdrc.vim
Normal file
@@ -0,0 +1,26 @@
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syntax include @Shell syntax/sh.vim
|
||||
|
||||
syn match sxComment "^#.*$"
|
||||
syn match sxHotkey "[^ #].*" contains=sxKeysym,sxModifier,sxHotkeySep,sxSequence
|
||||
syn match sxCommand "^\s.*$" containedin=ALL contains=@Shell,sxSequenceShell
|
||||
syn keyword sxModifier super hyper meta alt control ctrl shift mode_switch lock mod1 mod2 mod3 mod4 mod5 any contained
|
||||
syn match sxKeysym "[^ :;{,}+-]\+" contained contains=sxAction
|
||||
syn match sxAction "[@~/]" contained
|
||||
syn match sxHotkeySep "[;:+]" contained
|
||||
syn match sxSequenceSep "[,-]" contained
|
||||
syn region sxSequence matchgroup=sxBrace start=/{/ end=/}/ contained keepend oneline contains=sxKeysym,sxModifier,sxHotkeySep,sxSequenceSep
|
||||
syn region sxSequenceShell matchgroup=sxBrace start=/{/ end=/}/ contained keepend oneline contains=sxKeysym,sxSequenceSep
|
||||
|
||||
hi def link sxComment Comment
|
||||
hi def link sxModifier Keyword
|
||||
hi def link sxKeysym Identifier
|
||||
hi def link sxAction Special
|
||||
hi def link sxBrace Special
|
||||
hi def link sxHotkeySep Delimiter
|
||||
hi def link sxSequenceSep Delimiter
|
||||
|
||||
let b:current_syntax = "sxhkdrc"
|
||||
Reference in New Issue
Block a user