Linux vim latex-suite compiles weirdness

Running linux, when I compile a latex document from vim with the latex-suite package installed, I (without need) are prompted to press ENTER. That is, when I type \ll for compilation, the output from vim to the command line appears on the screen, which reads:

 Press ENTER or type command to continue 

Pressing ENTER brings me back to vim with my compiled document, however I would prefer not to press ENTER here (I don't have the same problem as on a Mac).

My .tex file is as follows

 \documentclass{article} \title{This is the title} \author{The Author} \date{September 2013} \begin{document} \maketitle Hello World! \end{document} 

From within vim, I provide the following command:

 :echo g:Tex_DefaultTargetFormat 

and get

 pdf 

I give the following command:

 :echo g:Tex_CompileRule_pdf 

and get

 pdflatex -interaction=nonstopmode $* >/dev/null 2>/dev/null 

At the bash prompt, I can type

 pdflatex -interaction=nonstopmode HelloWorld.tex >/dev/null 2>/dev/null 

and pdflatex compiles my document without requiring me to press ENTER. Any help that shouldn't hit ENTER on the command line would be appreciated.

+4
source share
1 answer

You can reassign \ll or create a new mapping, for example \ls to silently compile:

 map <leader>ls :silent call Tex_RunLaTeX()<cr> 

The key point here is the silent command, which prevents vim from asking you to press Enter. However, you will not see any results.

0
source

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


All Articles