dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

g:prosession_on_startup should not be triggered with `vim -t foo` #20

Closed blueyed closed 8 years ago

blueyed commented 8 years ago

It uses argc(), which is 0 in that case.

(-t foo goes to tag foo)

dhruvasagar commented 8 years ago

Perhaps, but there is no elegant, platform agnostic way to detect such cli options from within vimscript. I am not sure how this would behave if you were to specify a filename just to avoid prosession to kick in, but I'd suggest to try that.

dhruvasagar commented 8 years ago

At the moment I am going to close this issue since it's not a pressing one and is hard to fix.