Wednesday, February 13, 2013

Re: Using auto-format with LaTeX

Thanks (once again) for the patch!

Here are a few ideas:

It would be nice to end paragraph line before the match for some
patterns. For example if you have

lorem ipsum lorem ipsum
lorem ipsum lorem ipsum
lorem ipsum lorem ipsum
\section{New Aproach}

adding &para='/\\section' and using d} will delete one line to
much. But this should be only for some patters hence this will
require that &para is a list of patterns with some kind of
modifiers, or one would have to make support for multiline patterns.
Using something like &para='/\n\s*\\section' is not working with the
patch.



With the patch and &para='/^\zs\s*$' and the following text:

lorem ipsum lorem ipsum
lorem ipsum lorem ipsum


lorem ipsum lorem ipsum
lorem ipsum lorem ipsum


}, and { stop on the first met empty line, i.e. } will stop on the
top one, and { on the bottom one. But I think this is not a big
deal, though it is inconsistent with the nroff setting. Again
recognising multiple line patterns would help. Something like:

let &para='/^\_s*$'

A solution: after matching the line against the &para pattern and moving
the cursor to that line use something like:
:call search(&para, 'bc')


Z wyrazami szacunku :)
Marcin

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: