daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

argc() not work in vimrc #248

Closed aj3423 closed 2 weeks ago

aj3423 commented 3 years ago

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):