[Vim-latex-devel] envmacros.vim
Brought to you by:
srinathava,
tmaas
|
From: Mikolaj M. <mi...@wp...> - 2002-11-17 17:41:56
|
I am redirecting to devel list.
On Sat, Nov 16, 2002 at 04:54:27PM -0800, Srinath Avadhanula wrote:
> Hello!
> I did most of this myself because I couldn't resist ;)
> So the TODO which remains for envmacros.vim:
> 1. EFI in menu and EFI in maps insert different things.
> 2. Introduce a new setting g:Tex_UseMenuWizard in texrc to see if user
> wants wizard behavior or not.
> 3. Change s:Tex_change_environments to also use the
> s:PromptForEnvironment function.
> 4. Put a "Choose Environment" in the environments main menu (which
> should shortcut to Tex_FastEnvironmentInsert()).
> 5. Documentation!!! All these features are presently hidden from user.
> The reason for making a seperate function is that in the future, we might
> let the user choose which are the environments he most commonly uses
> instead of hardcoding them into s:common_environments.
Eeee, what exactly is left to do?
I'd like to introduce one more feature: more intelligent F5 key. It will
act:
x - cursor
I. Empty file
1. Empty line
----------
x
---------
Asks for environment.
2. One word in line
----------
asdfx
---------
Treats "asdf" as name of the environment
3. More than one word in line
----------
asdf asdfx
---------
Looks for environment and try to change it.
II. Non empty file (only \documentclass declaration)
1. Empty line
----------
\documentclass{article}
x
---------
Asks for package
2. One word in line
----------
\documentclass{article}
asdfx
---------
Treats "asdf" as name of the package (and checks if supported)
2. If line contains \usepackage
----------
\documentclass{article}
\usepackage{asdf}x
---------
Change package. Useful when changing supported packages.
III. Template
----------
\documentclass{article}
\begin{document}
\end{document}
---------
If cursor is above \begin{document} behaviour as in II, if below as in
I.
What do you think about it?
Mikolaj
|