When using vim-latex gq causes protrusions in the credits

When I edit the LaTeX file using Vim-LaTeX and want to reformat the section of text that is in \caption{} , I get overhangs or sneaks β€” I'm not sure what to name them. First, I select the text in the header, and then use "gq" to format it. After reformatting, the inscription looks like this:

  \caption{The problem is that when I reformat the text in a caption the text on each successive line begins further and further to the left until it begins at the first space of the line.} 

so that I would like the result to look something like:

  \caption{The problem is that when I reformat the text in a caption the text on each successive line begins further and further to the left until it begins at the first space of the line.} 

I hope the formatting in this post remains true to what I typed, but I tried to describe the problem in the first example header. The second must be justified.

Does anyone know what I need to do to fix this? I assume that there is a setting that I need to change, but I could not understand what it is.

+5
source share

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


All Articles