[vim/vim] some syntax files set options such as iskeyword (Issue #19652)

3 views
Skip to first unread message

Eisuke Kawashima

unread,
5:12 AM (8 hours ago) 5:12 AM
to vim/vim, Subscribed
e-kwsm created an issue (vim/vim#19652)

Steps to reproduce

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.

Expected behaviour

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.

Version of Vim

2ca96b0

Environment

independent

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19652@github.com>

Christian Clason

unread,
5:27 AM (8 hours ago) 5:27 AM
to vim/vim, Subscribed
clason left a comment (vim/vim#19652)

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.Message ID: <vim/vim/issues/19652/4045218329@github.com>

Reply all
Reply to author
Forward
0 new messages