Comment 3 for bug 719998

Revision history for this message
SirVer (sirver) wrote :

I just took a minute to investigate snipmates implementation of this problem: snipMate always escapes out of the snippet as soon as the cursor leaves the current line. For comparision: UltiSnips result with the sec snippet in tex is completely broken:

\section{lksdjfljsdfl kjsdflkjsdljkf sldkfj slkdjf lksdj flkjsd lkfj
lskdjf} % {{{ lksjd flksjd fl} % {{{
\label{sec:lksdjfljsdfl_kjsdflkjsdljkf_sldkfj_slkdjf_lksdj_flkjsd_lkfj_lskdjf_lksjd_flksjd_fl}

% section lksdjfljsdfl_kjsdflkjsdljkf_sldkfj_slkdjf_lksdj_flkjsd_lkfj_lskdjf_lksjd_flksjd_fl (end) }}}

snipmates result is less broken, but note that the mirror at the end is not correctly updated after the line break:

\section{lksdjf lksjdflksjdf lksdjfl ksjd flksjdf lksjdf lksjdflksjd flksjdf
lksjdflksjd flksjdf lksjd flksdjf lksdjf lksdjf} % (fold)
\label{sec:lksdjf lksjdflksjdf lksdjfl ksjd flksjdf lksjdf lksjdflksjd flksjdf lks}

% section lksdjf lksjdflksjdf lksdjfl ksjd flksjdf lksjdf lksjdflksjd flksjdf lks (end)

So snipmate is no real help here; it avoids the problem by not supporting multiline tabstops.