[Vim-latex-devel] Re: envmacros.vim
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2002-11-18 11:29:19
|
* On Sun, Nov 17, 2002 at 07:36:27PM -0800, Srinath Avadhanula <sr...@ee...> wrote: > > Otherwise, I should be able to provide you a more advanced templates > > mecanism completly independant of any LaTeX considerations. > > What new functionality will these provide? As I said, it will be independant of the type of the buffers manipulated ; ie one plugin (made of 3-4 files) for latex, vimL, C++, xslt, ... It is based on mu-template [BTW, I have some features in mind that I want to provide and then I will contact Gergely Kontra in case he is still maintening (t)his plugin]. Otherwise, the other features are: - Empty lines coming from '¡...¡' or '¿...¿' are purged - A template skeleton can be reindented after it has been loaded - The templates can be placed in any directory from {runtimepath}/template or $VIMTEMPLATE (list of directories) Useful for shared projects or installations - Several options permit to deactivate some automatic and undesirable behaviours when needed - I've defined a mapping (i_CTRL-R_TAB) that will search for template files matching: "template.{&ft}-{<cWORD>}" or "{&ft}/template.{cWORD}" ; in case there are several choices, a dialog will ask the user which template to insert ; cf xslt/ and tex/ templates in mu-template.tar.gz in my http://hermitte.free.fr/vim/ressources/ directory. i_CTRL-R_SPACE will work instead with the keyword preceding the position of the cursor. i_CTRL-R_xxx mappings can be changed to anything we want from outside the plugin thanks to the <Plug> mecanism. - It supports markers from my version of bracketing.base.vim, Robert Kelly IV's markjump or your placeholders from imaps.vim The current 0.26 version is functional and so far I have only one "bug" left (my vim windows blinks one time ; ie I got one flash in insert mode -- not critical, but undesired). I haven't written the documentation yet. But as you will notice, it is not complicated to use. Check the templates skeletons I propose for examples. -- Luc Hermitte |