mirror of
https://github.com/vim/vim.git
synced 2025-10-20 08:14:18 -04:00
runtime(help): Update syntax, match legacy header at :help vim9-mix
closes: #18458 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ef561cdcde
commit
21d40d2d41
@@ -30,4 +30,20 @@ however, that any long directory names will appear in their short (MS-DOS)
|
||||
form on some Windows versions. This is a limitation of the Windows "Send To"
|
||||
mechanism.
|
||||
|
||||
vim: set ft=help:
|
||||
|
||||
EXAMPLE LANGUAGES~
|
||||
*vim9-mix*
|
||||
There is one way to use both legacy and Vim9 syntax in one script file: >vim9
|
||||
|
||||
" legacy Vim script comments may go here
|
||||
if !has('vim9script')
|
||||
" legacy Vim script commands go here
|
||||
finish
|
||||
endif
|
||||
vim9script
|
||||
# Vim9 script commands go here
|
||||
|
||||
This allows for writing a script that takes advantage of the Vim9 script
|
||||
syntax if possible, but will also work on a Vim version without it.
|
||||
|
||||
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
|
Reference in New Issue
Block a user