Closed theunraveler closed 6 years ago
Is b:netrw_curdir
set while editing the file?
If you mean am I explicitly setting it in my config, then no. If you're wondering what the value of that variable is while editing a file, I'm not sure how to find that out (vimscript illiterate).
:echo b:netrw_curdir
Yes, it seems to be set to vim's pwd
. For example, if I do vim ~/my_project
, then navigate to ~/my_project/some_directory/another_directory/some_file.txt
by just clicking through in netrw
, the value of :echo b:netrw_curdir
is just ~/my_project
. Hope that helps...
Thanks for the quick responses; https://github.com/tpope/vim-vinegar/commit/9477d436f908c7419176f03be494dcfda3e15a2d seems to have fixed the first issue. I'm still getting the second issue though. Any thoughts there?
Wonderful; both issues seem to be fixed now. Thanks for the quick attention, and sorry if you had to revert back to a hack.
Hello. It seems that the most recent commit (https://github.com/tpope/vim-vinegar/commit/0620d01986d178ea98165597f3e3dd44e9b6ebfa) introduced a few issues:
-
while editing a file,netrw
opens to what appears to be vim'spwd
, not the directory that the file is in.-
again,netrw
opens to the same directory as above, but all of the file/directory names in the listing are duplicated. Do it again and all of the listings appear 3x, and so on.I used
git bisect
to narrow it down to the commit above, and everything seems to work fine before that. Thanks!