Vim(lcd):E344: Can't find directory "/usr/local/share/vim/vim82/File" in cdpath
See original GitHub issue- vim or neovim?
- vim
- neovim
- Output of
vim --version
ornvim --version
: 8.2 - Output of
:echo has("python")
: 0 - Output of
:echo has("python3")
: 1 - Output of
:echo &pythondll
(only vim, not neovim): - Output of
:echo &pythonthreedll
(only vim, not neovim): - Output of
:py print(sys.version)
: E319: Sorry, the command is not available in this version - Output of
:py3 print(sys.version)
: 3.7.5 (default, Nov 1 2019, 02:16:32) [Clang 11.0.0 (clang-1100.0.33.8)] - Output of
:echo g:Lf_Debug_Cmd
: E121: Undefined variable: g:Lf_Debug_Cmd - Output of
:echo g:Lf_FilesFromCache
: E121: Undefined variable: g:Lf_FilesFromCache - Operating system:
- Linux
- Mac OS X
- Windows
- Etc.
- Configurations related to LeaderF in vimrc:
Describe your question, feature request, or bug.
use :Leaderf file --popup or let g:Lf_WindowPosition = ‘popup’
Actual behaviour
show this error
Error detected while processing function leaderf#Any#start[4]..leaderf#LfPy:
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/a1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line
780, in start
the_args.start(arguments, *args, **kwargs)
File "/Users/a1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line
712, in _default_action
manager.startExplorer(win_pos[2:], *args, **kwargs)
File "/Users/a1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/fileExpl.py", lin
e 729, in startExplorer
super(FileExplManager, self).startExplorer(win_pos, *args, **kwargs)
File "/Users/a1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line
1978, in startExplorer
self._getInstance().enterBuffer(win_pos, not isinstance(content, list))
File "/Users/a1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/instance.py", lin
e 917, in enterBuffer
self._createPopupWindow(clear)
File "/Users/a1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/instance.py", lin
e 485, in _createPopupWindow
lfCmd("silent let winid = popup_create(%d, %s)" % (buf_number, str(options)))
vim.error: Vim(lcd):E344: Can't find directory "/usr/local/share/vim/vim82/File" in cdpa
th
Error detected while processing function leaderf#Any#start:
line 4:
E171: Missing :endif
thanks
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[bug] os.chdir() report E344 when destination directory ...
Steps to reproduce: 1. Open vim in directory D:\中文\test\ 2. Execute the following commands: :py import os :py os.chdir('..')
Read more >Can't change directory to network drive
but I cannot change the current directory to that drive or edit any files there. This also means that my vimrc is not...
Read more >vim (vimdiff) errors before opening every file with git difftool
With such a relative path, Vim will consult the 'cdpath' setting, and whatever is in there doesn't have a src/ directory, and so...
Read more >Vim and the Working Directory - Vimways
Step 3: using :lcd ... Luckily, vim has a command to change the working directory just for the current window: :lcd . So...
Read more >How to set working/current directory in Vim? - Stack Overflow
7 Answers 7 · 20. if you're using multiple windows, you can even use :lcd to change directory for the current window only....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it’s because this config
autocmd bufenter * lcd %:p:h
when i useautocmd bufenter * silent! lcd %:p:h
or remove it, popup workVery useful infomation. I guess quite a number of users setting auto change to buffer dir in their vimrc. Maybe mention this issue in help?