Thursday, August 9, 2018

Avoid "auto" short paths

Hi ,

I'm using vim 8.1.1 in windows 8 at my work , corporate environment.
Here we have the %HOMEPATH%, %HOMEDRIVE% set to "H:" and "\"

What happen:

I open a file at my Documents, path : C:\Users\cinacio\Documents\tmp1.txt
Vim automatically short it to : ~\Documents\tmp1.txt
I can see that with ":ls" and "let v:oldfiles"

The problem is, I use mksession and since I have HOMEPATH, HOMEDRIVE set , when I reopen vim and try recover my session, they don't found the file because they replace "~" to %HOMEDRIVE%+%HOMEPATH% , not %USERPROFILE% looking for the file at H:\Documents\tmp1.txt

So, I want set some option to force the use of absolute path "c:\Users\cinacio" and not "~".

Is this possible?


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: