# context-sensitive behaviour of editor

I would like to have a free editor under linux which has context-sensitive behaviour: When I am in an itemize-enivronment (i.e. between a \begin{itemize} and a \end{itemize}) I want the editor to start every new line with \item. Is there such an editor?

• By "new line" I mean "\n", a hard line break. – jonathan.scholbach Oct 13 '15 at 10:22
• In Kile, ctrl + return does this, but return does not. I think this is more useful, personally. – cfr Oct 15 '15 at 23:57

That really isn't useful, my \items often are several lines long.
That said, I use xemacs with AUC-TeX, it has meny commands tailored to LaTeX, e.g. C-c C-j in a list environment gives an \item. I understand GNU emacs does the same, and I believe vim is also programmable and has special commands for LaTeX, but I'm not familiar with that one.