-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
LeaderfFile DIR fails to open file at correct path #257
Comments
This command is evil, please do not use it. |
I know, I don't use it. The main issue is with vim-rooter which essentially does (I think :) ) the same under the hood -- changes working directory whenever you open a file. And because I use windows and gvim -- my workflow is mostly out of cmd line -- so my starting working directory is almost always the path vim is installed in. That is very inconvenient, and to make life easier you might start using autochdir, autocmd with lcd or vim-rooter. PS I have tried the same with CtrlP and fzf -- they don't have that problem. But even with this annoying issue, your plugin is more convenient to me |
I have "Vim here", but it really is inconvenient for me. I usually Well, okay. I can see a couple ways to workaround my problem:
Anyway, thanks! |
Fixed in dev branch, please have a try. |
YES! It is fixed! Thank you very much, really appreciated! |
vim --version
ornvim --version
::echo g:Lf_Debug_Cmd
:echo has("python")
: 0:echo has("python3")
: 1:echo &pythondll
(only vim, not neovim): python27.dll:echo &pythonthreedll
(only vim, not neovim): python37.dll:py print(sys.version)
: error:py3 print(sys.version)
:3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)]
:echo g:Lf_Debug_Cmd
:git ls-files && git ls-files --others --exclude-standard -x ".svn" -x ".hg" -x "*.sw?" -x "~$*" -x "*.bak" -x "*.exe" -x "*.o" -x "*.so" -x "*.py[co]" -x "*.tmp"
Describe your question, feature request, or bug.
When you have
then second
:LeaderfFile DIR
fails to open correct file.The same happens if you have
vim-rooter
plugin installed.Steps to reproduce
with autocmd:
:LeaderfFile DIR1
:leaderfFile DIR2
with vim-rooter:
The same as with autocmd but DIR1 and DIR2 should be under git -- so vim-rooter will change cwd.
Actual behaviour
Empty file with the chosen file name is opened at incorrect path.
Expected behaviour
Choosen file should be opened.
The text was updated successfully, but these errors were encountered: