title: Using Vim, isn't there a more efficient way to format LaTeX paragraphs according to this best practice?
body: <p>The best practice mentioned in the title is <a href="https://stackoverflow.com/questions/193298/best-practices-in-latex/196724#196724">the one suggested by Uri</a>:</p>
  
  <blockquote>
    <p>When writing paragraphs, start each
    sentence at the beginning of a line,
    and if it spills over, each subsequent
    line is tabbed.</p>
  </blockquote>
  
  <p>I use gVim with <a href="http://vim-latex.sourceforge.net/" rel="nofollow noreferrer">Vim-LaTeX</a>, which comes with an <a href="https://github.com/vim-scripts/LaTeX-Suite-aka-Vim-LaTeX/blob/master/indent/tex.vim" rel="nofollow noreferrer"><code>indent/tex.vim</code></a> file, to edit LaTeX files. The way I currently implement the practice mentioned above is as follows:</p>
  
  <ol>
  <li>I <code>:set textwidth=79</code> to automatically break lines before they become too long.</li>
  <li>I manually hit <kbd>Enter</kbd> after I finish inserting each sentence.</li>
  <li>If I'm done with revising and editing a sentence, I manually shift any spillovers using <kbd>></kbd><kbd>></kbd>, prefixing it with a count if necessary.</li>
  </ol>
  
  <p>Occasionally, that last step will make one or more spillovers go over the maximum line width. In this case, I</p>
  
  <ol>
  <li><kbd>g</kbd><kbd>q</kbd><kbd>q</kbd> the faulty line.</li>
  <li><kbd>J</kbd> my way through to the end of the sentence.</li>
  <li>repeat steps 1 and 2 as necessary.</li>
  </ol>
  
  <p>As you can imagine, this can become tedious. <strong>Isn't there a more efficient way to achieve the same result?</strong> Ultimately, I want to be able to write the sentences without worrying about their format, and then use <kbd>g</kbd><kbd>q</kbd><kbd>a</kbd><kbd>p</kbd>, or <kbd>g</kbd><kbd>q</kbd><kbd>i</kbd><kbd>p</kbd>, to automatically produce the result that I currently produce manually.</p>
  
  <p>To do that, I suspect that I will need to write a <code>formatexpr</code> of my own, but I'm not sure how to proceed. I have found a number of plugins, <em><a href="http://www.vim.org/scripts/script.php?script_id=2187" rel="nofollow noreferrer">Latex Text Formatter</a></em> and <em><a href="http://www.vim.org/scripts/script.php?script_id=2307" rel="nofollow noreferrer">Text (Especially LaTeX) Formatter</a></em>, and a <a href="http://vim.wikia.com/wiki/Formatting_paragraphs_in_LaTeX:_an_%22environment-aware_gqap%22" rel="nofollow noreferrer">tip</a>, but none of them seem to suit my needs, and I'm not sure how to modify them to do so.</p>