Caveat: You have to make sure you have a \begin{doc} and an \end{doc} or
that to work well.
Rather, if you are in an included TeX without a \begin{doc}, like:
% ====
This
is
a
test
\begin{equation}
x=5
\end{equation}
% ====
If you put your cursor on the "is" line and hit "vlp", you select
everything from "\begin{equation} down.
On 1/7/09 10:23 PM, Mike Richman wrote:
> " Section: Paragraph formatting (autofill) {{{
> " Correctly format paragraphs in LaTeX.
> " The exec command should be one line: watch out if the e-mail client
> " or server inserts any line breaks.
> function! g:Tex_SelectParagraph ()
> exec "normal
> ?^$\\|^\s*\\(\\\\begin\\|\\\\end\\|\\\\renewcommand\\|\\\\label\\|\\\\item\\)?1\<cr>v//-1\<cr>$"
> endfunction
> omap<buffer> lp :call g:Tex_SelectParagraph()<cr>
> vmap<buffer> lp<esc>:call g:Tex_SelectParagraph()<cr>
> " }}}
--
Ted Pavlic <[email protected]>
Please visit my ALS association page:
http://web.alsa.org/goto/tedpavlic
My family appreciates your support in the fight to defeat ALS.
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Vim-latex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel