home setting

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

home setting

Joseph Dornisch-2
Hello, I am using vim 8.1.1 on Windows 10 on a network where we have network drives as our home directory: H:. I still have a directory on the C drive C:\Users\<username>

I am trying to set the cdpath variable to the following:
set cdpath=.,H:\,C:\Users\<username>\Downloads\

The problem is that this becomes
cdpath=.,~,~\Downloads\

If I change my HOME environment variable to C:\Users\<username> it mostly works, but of course I want to leave the network drive as the home directory. Is there a way to force vim to use the fully qualified path names instead of automatically transforming them to ~.

I believe, though I am not certain, that this worked with vim 8.0.

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFim3NKBPKHuAGPWj0tTfEnB6OQwCmXEmDzCkYwZjEEgYCA54Q%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: home setting

Marvin Renich
* Joseph <[hidden email]> [200821 12:50]:

> Hello, I am using vim 8.1.1 on Windows 10 on a network where we have
> network drives as our home directory: H:. I still have a directory on the C
> drive C:\Users\<username>
>
> I am trying to set the cdpath variable to the following:
> set cdpath=.,H:\,C:\Users\<username>\Downloads\
>
> The problem is that this becomes
> cdpath=.,~,~\Downloads\
>
> If I change my HOME environment variable to C:\Users\<username> it mostly
> works, but of course I want to leave the network drive as the home
> directory. Is there a way to force vim to use the fully qualified path
> names instead of automatically transforming them to ~.
>
> I believe, though I am not certain, that this worked with vim 8.0.

I'm not sure, but at first glance, this seems like a bug to me.  Vim
should not change both "H:\" and "C:\Users\<username>" to "~" when
parsing cdpath.

I assume you are setting this in your vimrc?  What does Vim think your
$HOME is immediately before setting cdpath (try adding echo $HOME
immediately before your cdpath command).

I'm adding vim_dev to CC; perhaps someone there can give a more definite
answer.

...Marvin

--
--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200821175454.fovx5k4fwm5b52hb%40basil.wdw.