Re: [Vim-latex-devel] Re: Alt mappings
Brought to you by:
srinathava,
tmaas
From: Mikolaj M. <mi...@wp...> - 2003-01-07 22:35:32
|
On Tue, Jan 07, 2003 at 12:02:31PM +0100, Luc Hermitte wrote: > the {key}/{sequence_of_keys}. For instance, I like ']em' to insert > '\emph{}', but what do you prefer ? 'FEM', ']FEM', ']EM' ? I like FEM because: ]FEM it too long ]EM can lead to inconsistence. Are we getting rid of F only for \emph{} or for all font commands? Look for FIT. It is \itshape{}. You can change it for ]IT but what about EIT (\begin{itemize})? Existing system of shortcuts is slightly awkward bu at least (I hope) internally consistent. Really nice would be something quite different. Possibility for user to create his own mappings by doing :map ]em FEM (in another words: create latexSuite API). But I do not know how to do this. > Don't worry. > BTW, it would be nice if we could define mappings aware of the TeX mode. > For instace, an same mapping would insert '\textbf{}' or '\mathbf{}' > according to the current TeX mode. This is possible with checking of current syntax. Benji did it for inserting cdots, and I used it in 'polski' file. if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath\|^texZone' Mikolaj |