Skip to content
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

Different cwd behavior in VSCodeVim and native Vim #8195

Open
offerduo opened this issue Jan 3, 2023 · 0 comments
Open

Different cwd behavior in VSCodeVim and native Vim #8195

offerduo opened this issue Jan 3, 2023 · 0 comments

Comments

@offerduo
Copy link

offerduo commented Jan 3, 2023

After upgrading to vscode 1.74.2, I start observing a behavior change when openning another buffer with :e or :split in current buffer.

VSCode version: 1.74.2
VSCodeVim version: 1.24.3
Operatiing System: Windows 10

How to reproduce:

  • In VSCodeVim, open up terminal with working directory as /my/path/
  • Open up a buffer: code dir/foo.txt
  • In buffer foo.txt, do :split <tab>, it just searchs and autocomplets files within /my/path/dir instead of /my/path.
    From this observation, it behaves like the variable autochdir is set so the cwd is changed.

Behavior in native

Things are different in native vim if I do it directly from vscode terminal.

Workaround

Currently autochdir is not supported yet thus there's no way to change this behavior on VSCodeVim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant