Sets the right margin of the text.
Syntax
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³Tag ³Element ³Attributes ³End ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³:rm. ³Right margin ³margin= ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
Attributes
margin=
Note: When counting character spaces, you are actually counting average character widths.
Description
Use :rm. with the left-margin tag (:lm.) to specify the boundaries of the text in the window. The left-margin tag specifies where the text is to start, and the right-margin tag specifies where it is to end.
You can enter margin tags at the beginning of the line of text or while you are entering the text. Margin tags that begin the line of text cause text on that line and the following lines to align with the values specified. Margins set while you enter text become effective on the current line or on the next line, depending on where the margin tag begins. For example, to set the right margin to 60 (that is, 60 spaces before the right border of the window), begin the right-margin tag at least 60 spaces to the left of the right border. When the file is displayed, the text entered after the margin tag aligns to the value specified on that line.
If the margin tag is started after the specified boundary, the margin becomes effective on the next line.
When the text window is sized, the text area adjusts from the right to fit within the specified margin boundaries; that is, the right margin adjusts to the window size. The left margin stays the same. If the window is sized smaller than the specified margins, the margins remain the same, and the text area is reduced to one character space. If no value is specified for margin=, the default for the right margin is 1.
You can place multiple margin tags in your file. The specified margins remain effective until they are reset.
Example
:lm margin=1.:rm margin=44. :p.In this example, the left margin is 1. The right margin is 44. The margins are set before the text; therefore, when the file is displayed, the text formats according to the margins set. The text begins at space 2 and ends 44 spaces before the right window border. If the margin specified is less than the current cursor position on the screen, the margins set become effective on the following line. For example, if the current cursor position is 60 spaces to the left of the right window border and you set the right margin to 50, the margin is effective on the current line. However, if the right margin is set to 65, the margin becomes effective on the next line. :p. :lm margin=5. :rm margin=60.Here the left margin is set to 5 and the right margin is set to 60. This means that the left margin begins 5 spaces to the right of the left border. The right margin ends 60 spaces to the left of the right border.
Output
In this example, the left margin is 1. The right
margin is 44. The margins are set before the
text; therefore, when the file is displayed, the text
formats according to the margins set. The text
begins at space 2 and ends 44 spaces before the
right window border. If the margin specified is
less than the current cursor position on the
screen, the margins set become effective on the
following line. For example, if the current cursor
position is 60 spaces to the left of the right
window border and you set the right margin to 50,
the margin is effective on the current line.
However, if the right margin is set to 65, the
margin becomes effective on the next line.
Here the left margin is set to 5
and the right margin is set to
60. This means that the left
margin begins 5 spaces to the
right of the left border. The
right margin ends 60 spaces to
the left of the right border.