Problem: recursion error when setting ft=syntax
Solution: Skip the special syntax filetype
(Christoffer Aasted)
This:
vim -Nu NONE \
+'set filetype=syntax' \
+'syntax on'
yields
E127: Cannot redefine function <SNR>2_SynSet: It is in use
Setting filetype=syntax will try to reload synload.vim while SynSet() is
still executing which causes this error.
closes: #21271
Signed-off-by: Christoffer Aasted <dezzadk@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>