If I run the attached caseregression.sh file I get the following errors:
% bash caseregression.sh
Error detected while processing
/home/infynity/.vim/plugin/CaseRegression.vim[3]../home/infynity/.vim/autoload/CaseRegression.vim:
line 2:
E746: Function name does not match script file name:
caseregression#CaseRegression
Error detected while processing
/home/infynity/.vim/plugin/CaseRegression.vim:
line 3:
E1048: Item not found in script: CaseRegression
Press ENTER or type command to continue
--
Christian J. Robinson <[email protected]>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAK14FZKd75MsWW6gnCabqS6nVQPFx8nzhWdz3joZ3PBTy1Wg5Q%40mail.gmail.com.
#!/bin/bash
cat > ~/.vim/autoload/CaseRegression.vim <<EOF
vim9script autoload
export def CaseRegression(): void
return
enddef
EOF
cat > ~/.vim/plugin/CaseRegression.vim <<EOF
vim9script
import autoload 'CaseRegression.vim'
CaseRegression.CaseRegression()
EOF
vim
rm -f ~/.vim/autoload/CaseRegression.vim ~/.vim/plugin/CaseRegression.vim