I found startup vim with -u option to specify vimrc raised error.
~/.vim/pack/test/opt/sample/plugin.vimlet s:items = [ \ 'foo', \ 'bar', \ ] function! s:sample() abort echomsg s:items->join(' ') endfunction command! Sample :call s:sample()
packadd samplevim -u ~/.vimrc
s_ohyanagi@a961a4e1ba1d:~$ vim -u .vimrc Error detected while processing /home/s_ohyanagi/.vimrc[1]../home/s_ohyanagi/.vim/pack/test/opt/sample/plugin/sample.vim: line 1: E697: Missing end of List ']': line 2: E10: \ should be followed by /, ? or & line 3: E10: \ should be followed by /, ? or & line 4: E10: \ should be followed by /, ? or & line 1: E697: Missing end of List ']': line 2: E10: \ should be followed by /, ? or & line 3: E10: \ should be followed by /, ? or & line 4: E10: \ should be followed by /, ? or & Press ENTER or type command to continue
:SampleError detected while processing function <SNR>2_sample:
line 1:
E121: Undefined variable: s:items
https://github.com/vim/vim/assets/56591/68b082a3-01b8-4139-90a0-cc16d1635307
Thank you
Startup vim succeed and can execute loaded command
9.1.330
OS: Ubuntu 23.10
Terminal: Terminal.app(SSH from macOS)
value of $TERM: xterm-256color
shell: GNU bash, version 5.2.15
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
you are starting Vim in compatible mode. use -N to start in nocompatible mode.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #14560 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
oh... I had forgotten about nocompatible...
Thank you
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()