Description: Breaking very long Line. Author: Hugo Torres de Lima Last-Update: 2021-11-28 Index: nvi-1.81.6/docs/html/exref.html =================================================================== --- nvi-1.81.6.orig/docs/html/exref.html +++ nvi-1.81.6/docs/html/exref.html @@ -921,7 +921,8 @@ they are interpreted left-to-right. -On each specified line, the first instance of pattern pat is replaced by replacement pattern repl. If the global indicator option character `g' appears, then all instances are substituted; if the confirm indication character `c' appears, then before each substitution the line to be substituted is typed with the string to be substituted marked with `' characters. By typing an `y' one can cause the substitution to be performed, any other input causes no change to take place. After a substitute the current line is the last line substituted. +On each specified line, the first instance of pattern pat is replaced by replacement pattern repl. If the global indicator option character `g' appears, then all instances are substituted; if the confirm indication character `c' appears, then before each substitution the line to be substituted is typed with the string to be substituted marked with `' characters. By typing an `y' one can cause the substitution to be performed, any other input causes no change + to take place. After a substitute the current line is the last line substituted. @@ -969,7 +970,8 @@ flags

cols="2" cellspacing="0" cellpadding="0">
-The tags file is normally created by a program such as ctags, and consists of a number of lines with three fields separated by blanks or tabs. The first field gives the name of the tag, the second the name of the file where the tag resides, and the third gives an addressing form which can be used by the editor to find the tag; this field is usually a contextual scan using `/pat/' to be immune to minor changes in the file. Such scans are always performed as if nomagic was set.
+The tags file is normally created by a program such as ctags, and consists of a number of lines with three fields separated by blanks or tabs. The first field gives the name of the tag, the second the name of the file where the tag resides, and the third gives an addressing form which can be used by the editor to find the tag; this field is usually a contextual scan using `/pat/' to be immune to minor changes in the file. Such scans are always performed as if + nomagic was set.

The tag names in the tags file must be sorted alphabetically.

@@ -1029,7 +1031,8 @@ flags abbr: vi

cols="2" cellspacing="0" cellpadding="0"> -Enters visual mode at the specified line. Type is optional and may be `-' , `' or `.' as in the z command to specify the placement of the specified line on the screen. By default, if type is omitted, the specified line is placed as the first on the screen. A count specifies an initial window size; the default is the value of the option window. See the document An Introduction to Display Editing with Vi for more details. To exit this mode, type Q. +Enters visual mode at the specified line. Type is optional and may be `-' , `' or `.' as in the z command to specify the placement of the specified line on the screen. By default, if type is omitted, the specified line is placed as the first on the screen. A count specifies an initial window size; the default is the value of the option window. See the document An Introduction to Display Editing with Vi for more details. + To exit this mode, type Q.

visual file
visual
+n file

@@ -1372,7 +1375,8 @@ noai

cols="2" cellspacing="0" cellpadding="0"> -Can be used to ease the preparation of structured program text. At the beginning of each append, change or insert command or when a new line is opened or created by an append, change, insert, or substitute operation within open or visual mode, ex looks at the line being appended after, the first line changed or the line inserted before and calculates the amount of white space at the start of the line. It then aligns the cursor at the level of indentation so determined. +Can be used to ease the preparation of structured program text. At the beginning of each append, change or insert command or when a new line is opened or created by an append, change, insert, or substitute operation within open or visual mode, ex looks at the line being appended after, the first line changed or the line inserted before and calculates the amount of white space at the start of the line. It then aligns + the cursor at the level of indentation so determined. @@ -1426,7 +1430,8 @@ noaw

cols="2" cellspacing="0" cellpadding="0">
-Causes the contents of the buffer to be written to the current file if you have modified it and give a next, rewind, stop, tag, or ! command, or a ^ (switch files) or ^] (tag goto) command in visual. Note, that the edit and ex commands do not autowrite. In each case, there is an equivalent way of switching when autowrite is set to avoid the autowrite (edit for next, rewind! for .I rewind , stop! for stop, tag! for tag, shell for !, and :e # and a :ta! command from within visual).
+Causes the contents of the buffer to be written to the current file if you have modified it and give a next, rewind, stop, tag, or ! command, or a ^ (switch files) or ^] (tag goto) command in visual. Note, that the edit and ex commands do not autowrite. In each case, there is an equivalent way of switching when autowrite is set to avoid the autowrite (edit for next, rewind! for .I rewind , stop! for + stop, tag! for tag, shell for !, and :e # and a :ta! command from within visual).

beautify, bf default: nobeautify

@@ -1582,7 +1587,8 @@ LIbp

cols="2" cellspacing="0" cellpadding="0"> -Specifies a threshold for feedback from commands. Any command which modifies more than the specified number of lines will provide feedback as to the scope of its changes. For commands such as global, open, undo, and visual which have potentially more far reaching scope, the net change in the number of lines in the buffer is presented at the end of the command, subject to this same threshold. Thus notification is suppressed during a global command on the individual commands performed. +Specifies a threshold for feedback from commands. Any command which modifies more than the specified number of lines will provide feedback as to the scope of its changes. For commands such as global, open, undo, and visual which have potentially more far reaching scope, the net change in the number of lines in the buffer is presented at the end of the command, subject to this same threshold. Thus notification is suppressed during a global command on + the individual commands performed.

scroll default: scroll= window

cols="2" cellspacing="0" cellpadding="0"> -Start editing a new file called "file" or start editing the current file over again. The command ":e!" says "ignore the changes I've made to this file and start over from the beginning". It is useful if you really mess up the file. The optional "+" says instead of starting at the beginning, start at the "end", or, if "cmd" is supplied, execute "cmd" first. Useful cases of this are where cmd is "n" (any integer) which starts at line number n, and "/text", which searches for "text" and starts at the line where it is found. +Start editing a new file called "file" or start editing the current file over again. The command ":e!" says "ignore the changes I've made to this file and start over from the beginning". It is useful if you really mess up the file. The optional "+" says instead of starting at the beginning, start at the "end", or, if "cmd" is supplied, execute "cmd" first. Useful cases of this are where cmd is "n" (any integer) + which starts at line number n, and "/text", which searches for "text" and starts at the line where it is found. Index: nvi-1.81.6/docs/html/vitut.html =================================================================== --- nvi-1.81.6.orig/docs/html/vitut.html +++ nvi-1.81.6/docs/html/vitut.html @@ -1292,7 +1292,8 @@ form:
     :map lhs rhsCR
-
mapping lhs into rhs. There are restrictions: lhs should be one keystroke (either 1 character or one function key) since it must be entered within one second (unless notimeout is set, in which case you can type it as slowly as you wish, and vi will wait for you to finish it before it echoes anything). The lhs can be no longer than 10 characters, the rhs no longer than 100. To get a space, tab or newline into lhs or rhs you should escape them with a ^V. (It may be necessary to double the ^V if the map command is given inside vi, rather than in ex.) Spaces and tabs inside the rhs need not be escaped. +mapping lhs into rhs. There are restrictions: lhs should be one keystroke (either 1 character or one function key) since it must be entered within one second (unless notimeout is set, in which case you can type it as slowly as you wish, and vi will wait for you to finish it before it echoes anything). The lhs can be no longer than 10 characters, the rhs no longer than 100. To get a space, tab or newline into lhs or + rhs you should escape them with a ^V. (It may be necessary to double the ^V if the map command is given inside vi, rather than in ex.) Spaces and tabs inside the rhs need not be escaped.

Thus to make the q key write and exit the editor, you can give the command