You are not logged in.

#1 2018-04-16 20:32:30

arsenii
Member
Registered: 2017-09-07
Posts: 7

[SOLVED] Ghost characters in vim while using vim-live-latex-preview

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):

https://ibb.co/hWpG7S

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

#2 2018-04-17 07:24:21

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

The link is 404.

Online

#3 2018-04-17 07:41:15

arsenii
Member
Registered: 2017-09-07
Posts: 7

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

Sorry
Now I've posted a new link

Offline

#4 2018-04-17 16:14:32

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

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

Online

#5 2018-04-17 18:56:15

arsenii
Member
Registered: 2017-09-07
Posts: 7

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

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

#6 2018-04-17 20:24:49

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

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?

Online

#7 2018-04-18 09:49:42

arsenii
Member
Registered: 2017-09-07
Posts: 7

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

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

#8 2018-04-18 13:44:53

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

The thing seems to keep stuff in ~/.config/live-latex-preview/ - did you compare the broken w/ the working system itr?

Online

#9 2018-04-18 18:04:12

arsenii
Member
Registered: 2017-09-07
Posts: 7

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

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

#10 2018-04-18 18:11:59

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: [SOLVED] Ghost characters in vim while using vim-live-latex-preview

Solved is fine, but if you feel embarrassed (not saying you should), you can report it for deletion.

Online

Board footer

Powered by FluxBB