You are not logged in.
Hello everyone,
When I open a *.tex file in vim and start live preview via vim-live-latex-preview the editor acts bizarrely. It responds to any input just by showing keys' characters (not in the insert mode), as it is shown on the figure (top left corner):
It behaves similarly in both urxvt and xterm.
In addition, urxvt cursor blinking is erratic. The cursor blinks in non-uniform intervals. Maybe these two problems are interdependent.
Thanks in advance!
Mod Edit - Replaced oversized images with links.
CoC - Pasting pictures and code
-----------SOLUTION-----------
It is advisable to always check dependencies. Installation of xdotool has solved the issue.
Last edited by arsenii (2019-03-08 11:25:07)
Offline
The link is 404.
Offline
Sorry
Now I've posted a new link
Offline
It prints the escape codes for the arrow keys, that's a terminal issue.
Is this strictly related to .tex files or do you get this behavior in vim in general? What about in the shell? Which btw. is that?
echo $TERM
echo $SHELL
Offline
The output:
$ echo $TERM && echo $SHELL
rxvt-256color
/bin/bash
As far as I've noticed, the issue occurs only when I launch vim-live-latex-preview. But I've been using the current machine only for a couple of days. On my previous laptop it works well.
I tried in both urxvt and xterm, in addition I thought that the problem is with terminal configuration and disabled my user's ~/.Xresources, but with no success.
Last edited by arsenii (2018-04-17 18:56:29)
Offline
It'd be pretty helpful to *know* whether this happens only w/ vim-live-latex-preview, when editing a *.tex file or in general in vim (to blame that script, some vim hook or vim in general)
Also, sanity check: xterm is *not* announced as "rxvt-256color", is it?
Offline
For me it seems like vim doesn't run the preview script in silent (background) mode, so I would suggest some mistakes in vim-live-latex-preview scripts. However, since the script runs properly on another machine, I guess there is something wrong with the way it is started by vim.
If my suggestions are correct, then the suspicious blink of the terminal cursor (non equal intervals, like it lags or freezes; but blinks steadily when i move the arrow pointer) has different nature.
Speaking about the sanity check: xterm is not announced as "rxvt-256color", this is urxvt. But I launched xterm and run vim and the live preview in order to check, whether the problem is related to a specific terminal emulator.
Offline
The thing seems to keep stuff in ~/.config/live-latex-preview/ - did you compare the broken w/ the working system itr?
Offline
The problem was that I've instaled it from an unofficial clone on github, following instructions from one guy's website. After checking AUR it revealed that I need "xdotool", on which vim-live-latex-preview is dependent. After the installation it works properly
Seth, I am really sorry for bothering you.
Should I mark it as solved or delete the topic at all?
Offline
Solved is fine, but if you feel embarrassed (not saying you should), you can report it for deletion.
Offline