How can I make a command that allows me to insert LaTeX environments in the current text?
The idea is to press Ctrl+E or type :texenv and then enter the environment name in the bottom line, e.g. :texenv itemize. Which would then insert a
\begin{itemize}
\end{itemize}
Ideally placing the curser after the begin's closing brace.
I suspect I could do this with command but how do I paste the text into the buffer?