Ubuntu – Automatically indenting text that wraps to the next line in Gedit

gedit

            I have a problem where text that wraps around to the next line is not indented so that 
it is aligned with the start of the upper line, and I end up with paragraphs of text identical to this
one.

Hitting return at the end of the paragraph will indent the cursor do the correct position, but this is not a good way for me to work in the long term. I use Gedit for writing LaTeX files, and I like to structure them with indentations for readability purposes, but the only way to get the paragraphs to look the way they should is to insert a few tabs at the start of each line after I've written it, which leaves large amounts of whitespace in the middle of the paragraph if I decide to go back and rewrite anything. Is there a plugin that can do this for me?

Best Answer

kate has this features, but unfortunately it brings with it several packages, if you're not running kde already, and this is not what you asked for.

Another great editor gtk-based that has this feature is geany.

Just two editors I tried.