For example, sshconfig syntax file sets iskeyword
https://github.com/vim/vim/blob/2ca96b09d751c35189dd587d9b201e2aeb5559c0/runtime/syntax/sshconfig.vim#L24
Actually its ftplugin sets iskeyword and undo_ftplugin
https://github.com/vim/vim/blob/2ca96b09d751c35189dd587d9b201e2aeb5559c0/runtime/ftplugin/sshconfig.vim#L21
https://github.com/vim/vim/blob/2ca96b09d751c35189dd587d9b201e2aeb5559c0/runtime/ftplugin/sshconfig.vim#L23
so this is not a problem. But some syntax files do not have even their corresponding ftplugin, so isk etc are not undone.
A syntax file does not set options; use syntax counterparts if necessary
syn iskeyword _,-,a-z,A-Z,48-57 " do not setl iskeyword syn case ignore " do not setl ignorecase
or set them in ftplugin.
independent
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Many previous discussions of this, including #16083.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()