Rui Maciel wrote:
> I suspect that the imap command is the way to go, but I haven't found any
> tutorial on how to use it for this purpose.
The best that I could come up with was this:
:imap <Leader>item \begin{itemize}<enter>\end{itemize}<esc>k0o
when \item is typed in insert mode, an itemize environment is defined.
Does anyone know of a better way to pull this off?