Turn off line wrap in Gedit
I've been using kwrite for a long time and love the way I can turn on/off line wrapping easily. Now I'm running Ubuntu with GNOME, trying to avoid any KDE at all on this particular machine. Gedit seems to always wrap lines with no way to turn it off. Am I missing some well-hidden option?
Solution 1:
Edit > Preferences > View Tab > Text Wrapping options right there, front and center. Not "well hidden" by any means.
Solution 2:
UPDATE:
In 3.14.3 (and perhaps earlier) and in newer versions of gedit, there is a "Text wrapping" checkbox when you click on the "Line/Column" indicator on the status bar, in bottom right corner of the window.
IN VERY OLD VERSIONS:
As of gedit 10.4, there is no preferences dialog anymore. Some of the options are now in the status bar, but not word-wrapping.
You can turn word wrapping off by tweaking the GSettings settings. To do so, run the following command in your terminal:
gsettings set org.gnome.gedit.preferences.editor wrap-mode none
Besides none
, you can also turn it back on with either word
, char
, or word-char
word wrapping.