Describe the bug
In vimrc, argc() always returns 0, even when launched with argument like nvim-gtk some_file, it should return 1.
I also tried put the argc() in au VimEnter:
function! s:test()
let n = argc()
echom n
endfunction
au VimEnter * call s:test()
But still no luck.
After the gui launched, I type command :echo argc(), it shows "1", but why it's not working in vimrc?
Technical information (please complete the following information):
Describe the bug In vimrc,
argc()
always returns 0, even when launched with argument likenvim-gtk some_file
, it should return 1. I also tried put theargc()
inau VimEnter
:But still no luck.
After the gui launched, I type command
:echo argc()
, it shows "1", but why it's not working in vimrc?Technical information (please complete the following information):