I've run into similar problems repeatedly, and I'd welcome any solution.
This plagues me when working within math environments.

Please let me know if you'd like me to try out your patch.

- Rhys

On Fri, Apr 11, 2008 at 3:57 PM, Jesse Jacobsen <[EMAIL PROTECTED]> wrote:

> First, thank you for writing such a comprehensive and functional
> framework for editing LaTeX in Vim.  It has replaced my various
> home-grown solutions for some time now.  I use it daily.
>
> I have found that having } included in the indentkeys option is
> problematic when these two conditions are met:
>
> - I want a line to have a different indent than GetTeXIndent() would
>  like me to have.
>
> - I have something \emph{like this} within that line.
>
> The line is automatically reindented whenever the } character is entered
> into the buffer, so I have to manually reset the indent.
>
> There are two solutions I can see.  One is for me to stop insisting on
> using indent levels other than those provided by GetTeXIndent(), but
> that solution doesn't work with the kind of documents I often write.
>
> The other is to remove } from the indentkeys option.  Of course, that
> causes other problems.  The main problem is that several automatic
> features of LaTeXsuite rely upon } in indentkeys to produce sensible
> indents.  So, my question is this:
>
> Is there a reason why LaTeXsuite could not use ^F in its automatic
> features and templates instead of relying upon having the } in
> indentkeys?  According to the Vim documentation, and my own experiments,
> ^F is a usual way to reindent the current line according to indentexpr.
> I also noticed that !^F is already included in the indentkeys option
> under LaTeXsuite.  I have even modified parts of LaTeXsuite to include a
> ^F -- usually after a } -- so that the line is reindented immediately
> after being inserted.  It seems to work well.  However, there may be a
> reason I'm not aware of that this would not be a good solution.
>
> I could try creating a diff, but it would take me a while.  Please let
> me know if you'd like me to.
>
> Jesse Jacobsen
>
>
> --
> For God did not send His Son into the world to condemn the world, but
> that the world through Him might be saved.
> www.concordiahoodriver.org  www.bethanythedalles.org
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to