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
Endless loop seems to be occuring when using autocmd to switch to Project directory #430
Comments
Solved.
Found when I am just going to bed = = |
Yes. |
Here's a more useful one
|
I'm using Gvim 8.2 on Windows 10, and I use Vimfiler included in SpaceVim. I want Vimfiler to automatically switch to the project directory when I open a file (like pressing
<F3>
twice with SpaceVim)I added
to my _gvimrc (just copied from the config/vimfiler.vim in Spacevim and changed some of the values), and I just cannot get my cursor into Vimfiler window (if no_focus : 0, then stuck in Vimfiler window)
Then I reduced some of the options:
Still stucking the cursor
Try deleting the
'toggle'
option do not solve the problemI also tried adding a delay before calling the function, by changing the last autocmd line to
which seems changed something, Vimfiler no longer stucks the cursor, but it makes Vim very slow, When I opened my taskmanager, it shows that Vim is occupying a lot of CPU time.
Do not solved the problem as well.
In consideration of that calling
#profile()
when starting and changing directory when entering the Vimfiler buffer itself may cause problems, I added an if condition before executing the commands, and it finally looks likeThis solves the problem when I opened Vim (also when going into Vimfiler window), but the same problem still occurs when I open a file
Noticing a doautocmd command in Spacevim's config file, I added
doautocmd WinEnter
to the end of the function (before endif), do not solve the problem.Scripts in Spacevim relating to Vimfiler:
config/plugins_before/vimfiler.vim
config/plugins/vimfiler.vim
The text was updated successfully, but these errors were encountered: