I have these abbreviations in my .vimrc:
iab seq sequent
iab seqs sequents
seqs expands to
sequents
i seq sequent
in a tex file (I have installed vim-latex).
In an empty buffer seqs expands correctly to
sequents. How could I get the correct expansion in a tex file?
EDIT:
I addition, abbreviations are not expanding at all in a line of a tex buffer, if, e. g., left movements of cursor were made in that line.
I've noticed that all abbreviations work correct in a .tex buffer if triggered with Tab or CR. One simple way out is
imap <f2> <Tab><BS>
" One space after <BS> in f2
imap <f3> <Tab><BS>
and trigger abbreviations with f2 or f3. Please let me know if you find ` better solution.
:inoreabbrevinstead? It doesn't do recursive expansions of the rhs, which is what might be triggering unwanted behavior when combined with vim-latex... – filbranden Sep 03 '18 at 21:39inoreabbrevalso adds the additional asterisk. So the additional Abolish asterisk comes frominoreabbrev, I think – Romas Sep 04 '18 at 04:52inoreabbrevworks in the same way asiabin my example:seqsexpands to the same text. The Abolish plugin adds an additional asterisk.seqexpands to* sequentin a tex buffer (and I even didn't tryseqs). I think that vim-latex is buggy for abbreviations – Romas Sep 04 '18 at 04:27