While infuriating, a number of vim-latex's features can be customised without editing the source code.
Disable the EEA
mapping
In .vim/after/ftplugin/tex.vim
, add
call IMAP('EEA', 'EEA', 'tex')
Typing EEA
in insert mode will no longer insert the eqnarray
environment.
F5
prompted environments
In .vim/ftplugin/tex/texrc
, add:
let g:Tex_PromptedEnvironments = 'equation,\[,align,align*'
This removes eqnarray
and some of the other discouraged/redundant environments from the F5
prompt. Of course, you can add your own environments here as well.
^F1
-^F4
keybindings
There are also keybindings for ^F1
through to ^F4
. In .vim/ftplugin/tex/texrc
, add
let g:Tex_HotKeyMappings = 'bmatrix'
Again, you can customise this to suit your needs. (bmatrix
is one of vim-latex's defaults.)
eqnarray
? Or are you asking about how to expungeeqnarray
from all your existing documents the next time you open them? Or something else?eqnarray
is), applicable to general situation (if someone else wants the same thing, they should be able to use the solution to this specific one).