Wednesday, January 26, 2011

Re: latex file and backlash

Cesar Romani wrote:
> On 25/01/2011 08:23 p.m., Charles E Campbell Jr wrote:
> > Cesar Romani wrote:
> >> After a further analysis, I found out that the problem is with
> >> AutoAlign. If I remove ~/vimfiles/ftplugin/tex/AutoAlign.vim I
> don't get
> >> that bad behavior.
> >
> > Needless to say, I use AutoAlign, with latex files, and have no such
> > difficulties. Do you have any settings that you use? Oftentimes these
> > things are due to options I set and you don't or vice versa.
>
> The only setting which I have on my _vimrc is:
> source $VIMRUNTIME/vimrc_example.vim
I still don't see the problem:

abc.vim:
so $VIMRUNTIME/vimrc_example.vim

abc.tex:
\documentclass[12pt]{article}
\pagestyle{empty}
\title{nothing}

\begin{document}
\begin{tabular}
\end{tabular}
\end{document}


startup:
vim -u abc.vim
(insert abc&ghi\\ after the \begin{tabular})
(insert j&k\\ after the abc... line)

AutoAlign is clearly working, aligning the table -- but the cursor is
after the 2nd backslash as it should be for both lines. Perhaps you're
using an older AutoAlign? The latest may be obtained at
http://mysite.verizon.net/astronaut/vim/index.html#AUTOALIGN .

Regards,
Chip Campbell

--
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

No comments: