Bug#350021: Alt-I should insert \item before the current character

Joachim Breitner nomeata at debian.org
Mon Apr 24 17:43:35 UTC 2006


Hi Franz,

Am Donnerstag, den 20.04.2006, 09:27 +0200 schrieb Franz Pletz:
> I'm setting the severity to wishlist because this isn't actually a bug
> as this behaviour, under normal circumstances, wouldn't be triggered.
> Vim-latexsuite indents after you begin for example an itemize environment
> so you won't be at the start of a line. Indenting is good style anyway. ;-)

I have to disagree here. This is a normal circumstance:
        iteimze <F5> Bla1 <ENTER> <Alt-I> Bla2 <ENTER> Bla3 (oups,
        forgot to press Alt-I) <Pos1> <Alt-I>
Ausgabe:
\begin{itemize}
\item Bla1
\item Bla2
B\item la3
\end{itemize}<++>

Or is the result different with your setup?

Another point to support my view:

\begin{itemize}
1\item 234
1\item 234
12\item 34
123\item 4
\end{itemize}

This was created by writing:

\begin{itemize}
1234
1234
1234
1234
\end{itemize}

And then pressing <Alt-I> before the 1,2,3 and 4. The first two
shouldn't result in the identical line, IMHO.

> I'll contact upstream about the bug. Please check if my workaround works as
> intended and we'll see if we'll include this in another revision. This won't
> break compatibility but replacing <M-i> would.

It works for the first case, but the other cases are not optimal,
either:

\begin{itemize}
\item 1234
\item 1234
1\item 234
12\item 34
\end{itemize}

What I'd expect as a user is:

\begin{itemize}
\item 1234
1\item 234
12\item 34
123\item 4
\end{itemize}

i.e., the "\item " is inserted exactly at the current cursor position.

Thanks for reading the trough, and if you agree, please consider
reverting the severity.

Thanks,
Joachim
-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: joachimbreitner at amessage.de | http://people.debian.org/~nomeata

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20060424/fa846d4b/attachment.pgp


More information about the pkg-vim-maintainers mailing list