📄 mined.hel
字号:
MINED EDITOR MINEDNAME mined - a text editorSYNTAX mined [ -<options> ] [ +linenumber ] [ filename ] [ more filenames ... ]DESCRIPTION An easy-to-use and natural in appearance text editor. Its original version was designed for Andrew S Tanenbaum's operating system Minix. Startup features: - with given file name (as usual) or multiple file names - without given file name - reading from a pipe (reading text from standard input) - writing into a pipe (writing edited text to standard output) Examples: mined x - edits the file x mined x y z - edits files x, y, and z cmd | mined - edits the output of "cmd", file name for saving can be given later mined x > y - takes the contents of file x and edits it for writing into y mined | mail nn - edits a text to be mailed cmd1 | mined | cmd2 - modifies text in between a pipe from program cmd1 (output) to cmd2 (as input) Startup options: +number Mined positions to the given line number. -v Mined starts in view only mode. The text cannot be modified. -m ESC ESC does not exit mined, but proceed to the next file. (currently default setting) -p Enables provisions for proportional display fonts. (I have not yet encountered a terminal emulation which handles this well, see comments in mined.new.) -r Ignore CR characters (so strip them at line ends). I.e., read MSDOS text on Unix machines. -R Take CR only for newline. I.e., read MacIntosh text on MSDOS or Unix machines. -C Enables use of Chinese or other 16-bit character set. A byte with high bit set is regarded as the first of a two-byte character sequence and will not be separated in certain mined operations. This works well, e.g., with the Chinese xterm version, cxterm. -B Backspace deletes left, Delete deletes right. -W Select WordStar key function layout. This includes many functions of the ^K, ^O, and ^Q menus. -s Display option: Stay with cursor in top line after page down or bottom line after page up instead of center line. -S Display option: Use scrolling for page up/down. -dn Display option: Apply delay between lines of page output to achieve nice effective display build-up, starting from the new cursor position proceeding to the screen edges. If n lies between '0' and '9', the respective number of milliseconds is applied between display of two lines. If n='0', still an output flush is performed. If n='-', no delay at all is applied though still the order of display output is from cursor position to edges. Default: '-' in the Unix version, '9' in the MSDOS version. To achieve paging speed at the keyboard repeat rate but still have a taste of the build-up effect, a value of '5' or '6' is suitable on my MSDOS system. These options are also looked for in the environment variable MINED. Some options can also be set by the existence of further variables: MINEDPROP sets -p MINEDCHIN sets -C MINEDMAC sets -R MINEDWS sets -W Basic functionality Mined is always in insert mode. Commands are single control characters, double key commands starting with ESCAPE, and a collection of function keys (currently installed for the VT220, SUN, and Iris terminals). As a specialty, note the prefixing 'HOP KEY' which stretches the effect of some cursor and screen motion commands just as you would expect; this provides for more command flexibility without too much key remembering. Control key layout in the current version is 'geographically' oriented on the left side of the keyboard for the main motion commands, an idea probably originating from the 'WordMaster' and 'WordStar' editors. On SUN terminals, also the right-hand cursor block is assigned the most important movement functions as follows: +------+-------+------+ | LnDn | ^ | PgUp | +------+-------+------+ | <- | HOP | -> | +------+-------+------+ | LnUp | v | PgDn | +------+-------+------+ Note that line-feeds (end-of-line character) are treated like any ordinary character except that they cannot occur in search strings. This drawback (not to be able to search / replace lineends naturally) seems to be a tradition of line-oriented unix tools and I was not willing to spend that much time going into very special parts of mined. Every care has been taken to prevent loss of the edited text in case of save errors or accidental quit commands etc. Also, if a command is given to write to a file not previously read in, mined prompts for confirmation. In the "write to standard output" mode, only one save to standard output can be performed, so there is a problem in the case that more than one saving actions occur; the first save (whether by a write, edit, or suspend command) of the buffer is written to standard output, any subsequent one is treated as usual (with empty file name). Before regarding the command keys and their functions, note the following general remarks: The HOP function This function, triggered by any of the HOP keys, fortifies (or modifies) functions as follows. To achieve the combined function, first press any key that is assigned the HOP function, then any key assigned the second function: HOP - char left move cursor to start of current line HOP - char right move cursor to end of current line HOP - line up move cursor to top of screen HOP - line down move cursor to bottom of screen HOP - scroll up scroll half a screen up HOP - scroll down scroll half a screen down HOP - page up move to start of file HOP - page down move to end of file HOP - word left move cursor to previous ";" or "." HOP - word right move cursor to next ";" or "." HOP - delete tail of line/lineend delete whole line HOP - delete whole line delete tail of line HOP - delete previous character delete beginning of line HOP - set mark go to mark HOP - search search for current identifier HOP - search next repeat previous (last but one) search HOP - copy/cut copy or cut, but append to buffer HOP - save buffer save buffer, but append to file HOP - paste buffer paste "inter-window buffer", which is the last saved buffer by any invocation of mined on the same machine by the same user. HOP - edit next file edit last file HOP - edit previous file edit first file HOP - suspend suspend without writing file Typing in 8-bit characters in absence of appropriate keyboard Some function keys can be used as prefix keys to change the character assigned to the following key to a diacritic or special character. (MSDOS remark: the prefix and compose functions have been defined as appropriate for the "Codepage" 850. Some of the characters shown below are meaningless as letters in the "default Codepage" 437.) Six diacritic prefix functions are provided: grave: adds grave accent where applicable: 噼祢
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -