dhruvasagar / vim-prosession

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

Don't load/start if vim was started with any flags #85

Closed Gee19 closed 2 years ago

Gee19 commented 2 years ago

Something to consider, it might be better to do this check in a different place, then sessions would still automatically be saved after launching vim in this way.

dhruvasagar commented 2 years ago

@Gee19 what about other things in argv ? Should we just skip if there are any flags ?

Gee19 commented 2 years ago

@Gee19 what about other things in argv ? Should we just skip if there are any flags ?

I'm not aware of any other flags prosession would conflict with but I'm happy to help in finding out.

dhruvasagar commented 2 years ago

@Gee19 I meant, should we do this for any flag, not just -q ? Ideally, since prosession loads the session and files etc, it would conflict with most other flags.

Gee19 commented 2 years ago

@Gee19 I meant, should we do this for any flag, not just -q ?

Ideally, since prosession loads the session and files etc, it would conflict with most other flags.

That seems reasonable to me 👍

Gee19 commented 2 years ago

Updated the code to reflect the discussion above (first item in v:argv will always be the vim command)