Vim and latex box

I installed vim plugin latex-box, but I had problems compiling it with a Latex file. The docs say that it uses latexmk to compile, and I have it installed, and it works when it is called on its own. But when I use the plugin \ll command to compile, I get the error message "cannot start latexmk in the background without a VIM server." I can not find an explanation of why this error occurred in the plugin documentation.

EDIT:

I found a solution to this problem, but ran into others.

To fix this, you need to install the full version of vim (which is different from your OS), which will include things like server support. I suggest doing this even if you are not using this plugin because it will fix failed to copy / paste from / to vim. On (K) ubuntu, install the vim-gtk package.

Start vim as follows: vim --servername SOMETHING file.tex

After that, the server name error disappeared and the compilation passed, but the exit from latexmk appears on top of the file that I am editing. It does not overwrite it, it just displays on top of the text. When I move the cursor while vim selects a word or bracket that appears on the screen. The only quick way I found to get rid of the compiler output is to scroll the file up and back, which makes the text display again.

+6
source share
1 answer

You can ask vim to redraw the screen as follows:

 :redraw! 

Add this command after running your latex command.

+1
source

Source: https://habr.com/ru/post/897429/


All Articles