-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autochdir not working #62
Comments
I can reproduce this. Renderer has to be using a floating window (e.g. This is a Neovim bug, see neovim/neovim#15280. A workaround is to use an autocmd instead of autocmd BufEnter * call Chdir()
function! Chdir()
let l:dir = expand('%:p:h')
if isdirectory(l:dir)
execute 'cd ' . l:dir
endif
endfunction But I'm not sure if this fully replaces what |
There seems to be a problem with the chdir function. For example, I open three files in turn: |
I can't reproduce this. Could you elaborate on what it means to |
I tried again today, and I couldn't reproduce the problem. thank you for your reply. Looking forward to neovim fixing the float window bug. |
This is actually a bug of |
Has there been any progress with this? The workaround proposed by @gelguy works about 90% of the time but sometimes it does not change the directory. |
This is blocked by the bug mentioned in neovim/neovim#15280. |
my vim configuration uses autochdir, but the current path is not changed when the wilder executes
: e /path/of/ file
The text was updated successfully, but these errors were encountered: