Update: you *can* make more complex mappings. In this case, I've made
a robust object map for lp. It works in both object-pending or visual
mode. Here is the code in my ~/.vim/ftplugin/tex.vim:
" Section: Paragraph formatting (autofill) {{{
" Correctly format paragraphs in LaTeX.
" The exec com
The thing is, omap actually just defines a map that is in effect in
object-pending mode -- when the cursor is half-height in gvim. In
this case, the map goes backwards till it finds something that could
be considered the start of a LaTeX paragraph, then it does ".", or the
same thing, until the en
Hi Mike,
Mike Richman a écrit :
> Basically, gwlp will reformat the current paragraph until it reaches a
> blank line or a begin or end of environment or a label or an item
> command. This way gwlp won't mess up your math, but your text will
> still be formatted correctly.
>
OMG! I've been looki
Julien,
I've run into this problem as well. There are a couple things I do to
deal with the way vim wraps text.
First, I typeset my math in a certain style:
- I almost always use the AMS align or align* environments.
[see :h imaps.txt for how to make LatexSuite style maps, I use EAL
and E
Julien Cornebise a écrit :
> Some are reading us (hi Manuel): they are *everywhere* ! ;-)
> Still, I can see their point.
>
Hey, I'm not a ConTeXtualist, I only attend ConTeXt meetings for the
nice people, the mountains and the Czech beer :-)
Still, LaTeX is actually the most widespread TeX form
Thank you very much to both of you for the help !
I ignored that Ctrl-O worked also between buffers, thanks.
Julien
On Wed, Jan 7, 2009 at 6:33 PM, Ted Pavlic wrote:
> Sounds like an elegant solution!
>
> Additionally, if you want to prevent Vim-LaTeX from jumping to the WRONG
> file, see:
>
> h
Sounds like an elegant solution!
Additionally, if you want to prevent Vim-LaTeX from jumping to the WRONG
file, see:
http://phaseportrait.blogspot.com/2008/03/fixing-vim-latex-compiler-error.html
That way if you actually do get an error in the current file that's
opened, Vim will be less likel
I have not even tried to find a way to stop LatexSuite from jumping to
files with errors. I thought about it for a couple seconds, and then
realized that I can just CTRL-O to undo that jump, just as you can use
CTRL-O and CTRL-I to undo and redo most kinds of jumps.
Hopefully that will save you s
> In particular, when Vim7 came out, after some lobbying from ConTeXtualists
> and TeX purists,
Some are reading us (hi Manuel): they are *everywhere* ! ;-)
Still, I can see their point.
> So you're actually short-circuiting Vim7 with that setting.
Clever short-circuit, thanks !
Julien
--
>> let g:tex_flavor='latex'
>
> Sorry, my very mistake ! I had incorrectly capitalized it the texsuite
> way (i.e. let g:Tex_Flavor). It now works as angel. All my apologies,
> and all my thanks :)
It's interesting to note that "tex_flavor" has nothing to do with the
LaTeX-Suite, and that's why t
> That's interesting. It works for me. That is, I have
> let g:tex_flavor='latex'
Sorry, my very mistake ! I had incorrectly capitalized it the texsuite
way (i.e. let g:Tex_Flavor). It now works as angel. All my apologies,
and all my thanks :)
> Additionally, if you haven't figured this out alrea
>> If you put let g:tex_flavor='latex'
>> into your .vimrc, then you'll never have to ":set ft=tex" again.
>
> Thank you, but it does not seem to help the small file intro.tex
> trigger the launch of Latex-Suite when I open it. Anyway, this is a
> minor problem, as I rarely have such small files (t
> I'll try to comment on the other parts of the message later today,
thanks !
> If you put let g:tex_flavor='latex'
> into your .vimrc, then you'll never have to ":set ft=tex" again.
Thank you, but it does not seem to help the small file intro.tex
trigger the launch of Latex-Suite when I open it
I'll try to comment on the other parts of the message later today, but
in the meanwhile...
> 2. set intro.tex the current buffer (and ":set ft=tex" for LatexSuite to
> be loaded, the file seems too short to be correctly autodetected as a
> latex file), stay on first line
If you put:
let
Dear all,
I suggest this feature to be added : allow two distinct "tw" settings for
normal and math modes.
Personnally, I often want my paragraphsto be tw=72, but to wrap my math
formulas myself (i.e. tw=0), regardless of the length of line -- some
intricate math expressions can sometimes be more
Hi Ted
Thanks for your fast answer. The problem persists when editing projects in
buffers (which I alerady did, through tabs, and now do through "pure"
buffers).
Included is a complete minimal example :
0. let g:Tex_GotoError=0 in the .vimrc
1. open the two files "main.tex" and "intro.tex" in two
16 matches
Mail list logo