Closed eyalk5 closed 4 years ago
Please read the issue template and provide some more details. I can't reproduce this.
Is it OK now?
Is it OK now?
Yes, much better. However, I've made some updates to make it even better: i) added proper formatting, ii) fixed spelling errors, iii) move the most important information to the beginning.
Cant compilation be executed completely in background? The standard solution is bang! It is kind of a feature request but I don't see a reason it would do this.
This is the intended behaviour, so you might be experiencing a bug. I will try to reproduce it. But please: There is absolutely no reason to be rude. "The standard solution is bang!" is not the way to express yourself. I am spending my spare time maintaining and developing vimtex, and the least I expect from users are for them to be polite when raising issues/feature requests.
I expect it not to get out of visual mode, but to execute in the background.
Thanks, this makes things much more clear.
Regarding your configuration: You have not specified a minimal vimrc, only the configuration you use in your vimrc (I assume). Further, do you need set updatetime = 3000
to reproduce this? If not, it should not be included!
I will try to reproduce things even without a fully minimal example.
Ok: I still can't reproduce this. So, please provide a full minimal example. Let me know if you need help with that.
Sorry, I didn't mean to be rude. The bang is just a suggestion. And it is a common way to provide additional mode of "silent" to a command.
For me it happens every 5 minutes, when I need to press gv
to get back to visual mode.
Thanks for the try. I will try to produce it minimally. You are just not quick enough with the visual mode?
Sorry, I didn't mean to be rude. The bang is just a suggestion. And it is a common way to provide additional mode of "silent" to a command.
Ah, that's good. I mistook the "bang" sentence as being offensive, not as a suggestion to use :!
. But you can be sure that I know about :!
and friends for running jobs! Vimtex uses several different methods to run processes in the background, and the preferred method is to use Vim or neovims job feature.
For me it happens every 5 minutes, when I need to press
gv
to get back to visual mode.Thanks for the try. I will try to produce it minimally. You are just not quick enough with the visual mode?
No, I'm pretty sure that I'm quick enough. :) Let me know if you can provide a more minimal example. The most important part is to identify a minimal vimrc file. So I would start with that.
Yes, I tried to reproduce it using minimal vimrc. It doesn't happen in nvim in TUI. It just happens in neovim-qt. I tried to run it minimally with neovim-qt and couldn't make it work. So, I am not sure.
I was confused myself, since the issue happens on save (on compile on save), and not when executing :VimtexCompile.
Thanks for the updates. I'm sorry to say I don't really have any idea how to help you with this. I don't use neovim-qt (don't really see why you would want it, either).
I see you have raised the issue upstream, and so I hope that may end up solving the issue.
Unless I can get a minimal configuration that makes it possible for me to reproduce the issue, there is really nothing more I can do.
I don't think it is a bug on your side. It happens in the callbacks of nvr. I disabled the callbacks and it is OK.
I don't think it is a bug on your side. It happens in the callbacks of nvr. I disabled the callbacks and it is OK.
Ok, then I'll take the liberty of closing the issue.
It is actually solved https://github.com/neovim/neovim/issues/12165 known nvr problem
Great, happy to hear it! :)
Issue It compiles when the file is saved. The problem is when it compiles, it gets out of visual mode and insert mode. Thus it disrupts continuous work. I sometimes save and want to do somethings quickly and it fails. it compiles the document when the document is saved(by my configuration).
Cant compilation be executed completely in background?
reproduce
tex doc
.nmap Y :w<CR>
\ll
(wait for compile)Y
v
(shortly after)I expect it not to get out of visual mode, but to execute in the background.
configuration
vimtexinfo