The word wrap feature splits lines of text at word boundaries in order for the text to fit inside a specified wrap margin. Two wrap modes are available; "soft" and "hard". These two modes are described below. The wrap margin position is indicated in the text are as a faint blue vertical line. The wrap mode and wrap column location can be changed in one of several ways:
On a global or mode-specific basis in the Editing and Mode-Specific panes of the Utilities>Global Options dialog box; see the section called "The Global Options Dialog Box".
In the current buffer for the duration of the editing session in the Utilities>Buffer Options dialog box; see the section called "The Buffer Options Dialog Box".
In the current buffer for future editing sessions by placing the following in one of the first or last 10 lines of the buffer, where mode is either "soft" or "hard", and column is the desired wrap margin position:
:wrap=mode:maxLineLen=column: |
In soft wrap mode, lines are automatically wrapped when being displayed. No newlines are inserted, and the wrapping is automatically updated when text is inserted or removed. If you set the wrap column to zero while soft wrap is enabled, text will be wrapped to the width of the text area.
If end of line markers are enabled in the Text Area pane of the Utilities>Global Options dialog box, a colon (":") is painted at the end of wrapped lines.
In hard wrap mode, inserting text at the end of a line beyond the wrap column will automatically insert a line break at the appropriate word boundary. Existing text is not changed in any way.
Hard wrap is implemented using character offsets, not screen positions, so it might not behave like you expect if a proportional-width font is being used. For information about changing the font used in the text area, see the section called "The Global Options Dialog Box".