vim9script syntax file how to deal with s:cpo_save

20 views
Skip to first unread message

Ni Va

unread,
May 7, 2022, 4:05:11 PM5/7/22
to vim_use
hi,

after migrating vim to vim9script syntax file, this one embbeded these kind of lines code :

vim9script

if exists("b:current_syntax")
  finish
endif

s:cpo_save = &cpo
set cpo&vim




so i encounter these error now :

"foobar.log" [converted] 12550L, 1485333B
Error detected while processing BufRead Autocommands for "*.log"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>19_SynSet[25]..script Z:\soft\Vim\vimfiles\syntax\log.vim:
line   11:
E1089: Unknown variable: s:cpo_save
Error detected while processing BufEnter Autocommands for "*.log"..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>19_SynSet[25]..script  Z:\soft  \Vim\vimfiles\syntax\log.vim:
line   11:
E1089: Unknown variable: s:cpo_save
Reply all
Reply to author
Forward
0 new messages