Tuesday, February 25, 2014

Re: Still having different pwd for different windows

Aaron Bohannon wrote:
> I only skimmed this thread, but surprisingly, no one seems to have brought up the issue of netrw. Whenever you browse a directory in a window, netrw executes an :lcd command in that window, so that it's CWD is different from the rest of the windows. Now that is actually a perfectly sensible thing for netrw to do if g:netrw_keepdir == 0. However, netrw *always* does it, even if g:netrw_keepdir == 1 (the default, meaning "don't change the CWD"). It drives me nuts.
>
Please give me an example.

With g:netrw_keepdir= 1, and starting from my home directory:

vim somefile
:echo getcwd() (shows home directory)
:wincmd s
:e .vim
:echo getcwd() (shows home directory)
:wincmd j
:echo getcwd() (shows home directory)

So, netrw did not change the cwd, in either of the two windows used.

Regards,
C Campbell

--
--
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/groups/opt_out.

No comments:

Post a Comment