xolox / vim-session

Extended session management for Vim (:mksession on steroids)
http://peterodding.com/code/vim/session/
961 stars 80 forks source link

gvim --servername xxx does not work #159

Closed JESii closed 2 years ago

JESii commented 7 years ago

I have a session named 'brcvi'.

When I am in vim and say :OpenSession brcvi it works just fine.

When I am in gvim and say :OpenSession brcvi it works just fine.

When I am on the command line and say gvim --servername brcvi gvim opens but the session is not

I have a startup function to open NERDTree if no file is specified

function! StartUp()
  if 0 == argc()
    NERDTree
  end
endfunction

I'm guessing this is the problem, but I don't understand why that would be the case since argc() should be > 0 in this case?