dhruvasagar / vim-prosession

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

Multiple files for a single directory #11

Closed m42e closed 9 years ago

m42e commented 9 years ago

It seems that sometimes the Plugin writes the session to a path similar to:

%proj%someproj but sometimes %proj%someproj% will be used.

dhruvasagar commented 9 years ago

Can you give me an example ? It should always be something like %path%to%dir%name.vim so not too sure about the extra % you mention or where it appears, it could be because of an additional / at the end of the path name I suppose.

dhruvasagar commented 9 years ago

Did you do this by using :Prosession with a new directory (for which a session doesn't exist already) !?

m42e commented 9 years ago

Oh, I missed the .vim at the end in my first post.

If I'm starting vim within a folder it creates the file without the extra % or / at the end. If I switch using Prosession it is added.

I'm currently using it on a Win64 with cygwin on it.

dhruvasagar commented 9 years ago

It should be consistent now, kindly confirm.

m42e commented 9 years ago

Thanks.

m42e commented 9 years ago

Seems not to work:

Error detected while processing function <SNR>64_GetSessionFile..<SNR>64_GetSessionFileName..<SNR>64_GetDirName..<SNR>64_StripTrailingSlash:
line    1:
E121: Undefined variable: name
m42e commented 9 years ago

See #12

dhruvasagar commented 9 years ago

Ah typo :/, I should add tests.