Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
            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?

share|improve this question
    
To clarify, are you just typing until the text automatically wraps to the next line, or are you hitting Enter/Return and then typing the next line? –  Alvin Row Oct 23 '10 at 19:41
    
I'm continuing to type. I know that I can indent it by hitting return, but that again leaves me with large whitespace sections if I rewrite any of it. –  Chris Wilson Oct 23 '10 at 19:42
1  
I would love to see a way to do this. –  fluteflute Oct 23 '10 at 19:53
    
The only problem with this is it would need to reflow the text every time you resize the window; wordwrap is based only on the window dimensions. –  Jonathon Oct 23 '10 at 20:10
    
Sounds like a feature request. –  ændrük Oct 24 '10 at 0:34
add comment

3 Answers

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.

share|improve this answer
    
Plus one on Geany. I switched to Geany from gedit about 2 months ago and am loving it. My only complaints about Geany are, not enough color schemes to chose from and not as easy to switch between the as with gedit and the split screen option doesn't actually let you edit 2 files at once. Otherwise its brilliant and does the auto indent of paragraphs like you want. –  Ash G Oct 23 '10 at 23:15
    
When I'm not using vim, geany is one of my preferred editors for coding. –  Roger Pate Oct 23 '10 at 23:58
1  
Kate's great, but he doesn't seem to be asking about other editors that can do what he wants done - he wants to know how to make Gedit do it. And I'd like to know that as well. Gedit is a brilliant text editor once you dig in, enable a few options, and add a few plugins. –  trench Oct 24 '10 at 9:32
add comment
up vote 2 down vote accepted

The need for this feature has been noted at some point in the past, and it is marked as a requested plugin on the Gedit website, though I'm not sure if that means the Gedit developers will get round to doing it themselves at some point, or if it's up to the community to do it itself.

share|improve this answer
add comment

About 2 years ago, I made a bug report about this functionality:

Auto-indent long lines (smart line wrapping)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.