Fix hyphen-used-as-minus-sign
old
|
new
|
|
1 | | .TH MCEDIT 1 "August 2009" "MC Version 4.7.0-pre1" "GNU Midnight Commander" |
| 1 | .TH MCEDIT 1 "August 2009" "MC Version 4.7.0\-pre1" "GNU Midnight Commander" |
2 | 2 | .SH NAME |
3 | 3 | mcedit \- Internal file editor of GNU Midnight Commander. |
4 | 4 | .SH USAGE |
… |
… |
|
42 | 42 | Disable mouse support. |
43 | 43 | .TP |
44 | 44 | .I "\-f" |
45 | | Display the compiled-in search path for GNU Midnight Commander data |
| 45 | Display the compiled\-in search path for GNU Midnight Commander data |
46 | 46 | files. |
47 | 47 | .TP |
48 | 48 | .I "\-t" |
49 | 49 | Force using termcap database instead of terminfo. This option is only |
50 | | applicable if GNU Midnight Commander was compiled with S-Lang library |
| 50 | applicable if GNU Midnight Commander was compiled with S\-Lang library |
51 | 51 | with terminfo support. |
52 | 52 | .TP |
53 | 53 | .I "\-V" |
54 | 54 | Display the version of the program. |
55 | 55 | .TP |
56 | 56 | .I "\-x" |
57 | | Force xterm mode. Used when running on xterm-capable terminals (two |
| 57 | Force xterm mode. Used when running on xterm\-capable terminals (two |
58 | 58 | screen modes, and able to send mouse escape sequences). |
59 | 59 | .SH FEATURES |
60 | | The internal file editor is a full-featured full screen editor. It can |
| 60 | The internal file editor is a full\-featured full screen editor. It can |
61 | 61 | edit files up to 64 megabytes. It is possible to edit binary files. |
62 | 62 | The features it presently supports are: block copy, move, delete, cut, |
63 | | paste; key for key undo; pull-down menus; file insertion; macro |
| 63 | paste; key for key undo; pull\-down menus; file insertion; macro |
64 | 64 | commands; regular expression search and replace (and our own |
65 | | scanf-printf search and replace); shift-arrow text highlighting (if |
66 | | supported by the terminal); insert-overwrite toggle; word wrap; |
| 65 | scanf\-printf search and replace); shift\-arrow text highlighting (if |
| 66 | supported by the terminal); insert\-overwrite toggle; word wrap; |
67 | 67 | autoindent; tunable tab size; syntax highlighting for various file |
68 | 68 | types; and an option to pipe text blocks through shell commands like |
69 | 69 | indent and ispell. |
70 | 70 | .SH KEYS |
71 | 71 | The editor is easy to use and can be used without learning. The |
72 | | pull-down menu is invoked by pressing F9. You can learn other keys from |
| 72 | pull\-down menu is invoked by pressing F9. You can learn other keys from |
73 | 73 | the menu and from the button bar labels. |
74 | 74 | .PP |
75 | 75 | In addition to that, Shift combined with arrows does text highlighting |
76 | 76 | (if supported by the terminal): |
77 | | .B Ctrl-Ins |
| 77 | .B Ctrl\-Ins |
78 | 78 | copies to the file |
79 | 79 | .BR ~/.mc/cedit/cooledit.clip , |
80 | | .B Shift-Ins |
| 80 | .B Shift\-Ins |
81 | 81 | pastes from |
82 | 82 | .BR ~/.mc/cedit/cooledit.clip , |
83 | | .B Shift-Del |
| 83 | .B Shift\-Del |
84 | 84 | cuts to |
85 | 85 | .BR ~/.mc/cedit/cooledit.clip , |
86 | 86 | and |
87 | | .B Ctrl-Del |
| 87 | .B Ctrl\-Del |
88 | 88 | deletes highlighted text. Mouse highlighting also works on some |
89 | 89 | terminals. To use the standard mouse support provided by your terminal, |
90 | 90 | hold the Shift key. Please note that the mouse support in the terminal |
… |
… |
|
92 | 92 | .BR mcedit . |
93 | 93 | .PP |
94 | 94 | The completion key (usually |
95 | | .B "Meta-Tab" |
| 95 | .B "Meta\-Tab" |
96 | 96 | or |
97 | 97 | .BR "Escape Tab" ) |
98 | 98 | completes the word under the cursor using the words used earlier in the |
99 | 99 | file. |
100 | 100 | .PP |
101 | 101 | To define a macro, press |
102 | | .B Ctrl-R |
| 102 | .B Ctrl\-R |
103 | 103 | and then type out the keys you want to be executed. Press |
104 | | .B Ctrl-R |
| 104 | .B Ctrl\-R |
105 | 105 | again when finished. You can then assign the macro to any key you like |
106 | 106 | by pressing that key. The macro is executed when you press |
107 | | .B Ctrl-A |
| 107 | .B Ctrl\-A |
108 | 108 | and then the assigned key. The macro is also executed if you press |
109 | 109 | Meta, Ctrl, or Esc and the assigned key, provided that the key is not |
110 | 110 | used for any other function. The macro commands are stored in the file |
… |
… |
|
125 | 125 | will be created for you from the default template. Feel free to edit it |
126 | 126 | if you need. |
127 | 127 | .PP |
128 | | .B C-p |
| 128 | .B C\-p |
129 | 129 | will run ispell on a block of text in a similar way. The script file |
130 | 130 | will be called |
131 | 131 | .BR ~/.mc/cedit/edit.spell.rc . |
… |
… |
|
139 | 139 | .B mcedit |
140 | 140 | can be used to navigation through code with tags files created by etags |
141 | 141 | or ctags commands. If there is no file TAGS code navigation would not work. |
142 | | In example, in case of exuberant-ctags for C language command will be: |
| 142 | In example, in case of exuberant\-ctags for C language command will be: |
143 | 143 | .PP |
144 | | ctags -e --language-force=C -R ./ |
| 144 | ctags \-e \-\-language\-force=C \-R ./ |
145 | 145 | .PP |
146 | | .B Meta-Enter |
| 146 | .B Meta\-Enter |
147 | 147 | show list box to select item under cursor (cusor should stand at end of |
148 | 148 | word). |
149 | 149 | .PP |
150 | | .B Meta-Minus |
151 | | where minus is symbol "-" go to previous function in navigation list (like a browser |
| 150 | .B Meta\-Minus |
| 151 | where minus is symbol "\-" go to previous function in navigation list (like a browser |
152 | 152 | Back). |
153 | 153 | .PP |
154 | | .B Meta-Equal |
| 154 | .B Meta\-Equal |
155 | 155 | where equal is symbol "=" go to next function in navigation list (like a browser |
156 | 156 | Forward). |
157 | 157 | .PP |
… |
… |
|
161 | 161 | (like C comments, string constants, etc) are highlighted in different |
162 | 162 | colors. The following section explains the format of the file |
163 | 163 | .BR ~/.mc/cedit/Syntax . |
164 | | If this file is missing, system-wide |
| 164 | If this file is missing, system\-wide |
165 | 165 | .B @prefix@/share/mc/syntax/Syntax |
166 | 166 | is used. |
167 | 167 | The file |
… |
… |
|
452 | 452 | .TP |
453 | 453 | .I editor_line_state |
454 | 454 | show state line of editor now it show number of file line (in future it |
455 | | can show things like folding, breakpoints, etc.). M-n toglle this option. |
| 455 | can show things like folding, breakpoints, etc.). M\-n toglle this option. |
456 | 456 | .TP |
457 | 457 | .I editor_visible_spaces |
458 | 458 | Toggle show visible trailing spaces (TWS), if editor_visible_spaces=1 TWS |
459 | 459 | showed as '.' |
460 | 460 | .TP |
461 | 461 | .I editor_visible_tabs |
462 | | Toggle show visible tabs, if editor_visible_tabs=1 tabs showed as '<---->' |
| 462 | Toggle show visible tabs, if editor_visible_tabs=1 tabs showed as '<\-\-\-\->' |
463 | 463 | .TP |
464 | 464 | .I editor_persistent_selections |
465 | 465 | Do not remove block selection after moving the cursor. |
… |
… |
|
480 | 480 | save file position on exit. |
481 | 481 | .TP |
482 | 482 | .I source_codepage |
483 | | symbol representation of codepage name for file (i.e. CP1251, ~ - default). |
| 483 | symbol representation of codepage name for file (i.e. CP1251, ~ \- default). |
484 | 484 | .SH MISCELLANEOUS |
485 | 485 | You can use scanf search and replace to search and replace a C format |
486 | 486 | string. First take a look at the |
… |
… |
|
515 | 515 | treats whitespace as being elastic. Note that the scanf format %[ is |
516 | 516 | very useful for scanning strings, and whitespace. |
517 | 517 | .PP |
518 | | The editor also displays non-us characters (160+). When editing |
| 518 | The editor also displays non\-us characters (160+). When editing |
519 | 519 | binary files, you should set |
520 | 520 | .B display bits |
521 | 521 | to 7 bits in the Midnight Commander options menu to keep the spacing |
… |
… |
|
527 | 527 | .PP |
528 | 528 | .I @prefix@/share/mc/mc.ini |
529 | 529 | .IP |
530 | | The default system-wide setup for GNU Midnight Commander, used only if |
| 530 | The default system\-wide setup for GNU Midnight Commander, used only if |
531 | 531 | the user's own ~/.mc/ini file is missing. |
532 | 532 | .PP |
533 | 533 | .I @prefix@/share/mc/mc.lib |
… |
… |
|
537 | 537 | .PP |
538 | 538 | .I @prefix@/share/mc/syntax/* |
539 | 539 | .IP |
540 | | The default system-wide syntax files for mcedit, used only if |
| 540 | The default system\-wide syntax files for mcedit, used only if |
541 | 541 | the corresponding user's own ~/.mc/cedit/ file is missing. |
542 | 542 | .PP |
543 | 543 | .I $HOME/.mc/ini |
544 | 544 | .IP |
545 | 545 | User's own setup. If this file is present then the setup is loaded |
546 | | from here instead of the system-wide setup file. |
| 546 | from here instead of the system\-wide setup file. |
547 | 547 | .PP |
548 | 548 | .I $HOME/.mc/cedit/ |
549 | 549 | .IP |
… |
… |
|
551 | 551 | user's own syntax files are located. |
552 | 552 | .SH LICENSE |
553 | 553 | This program is distributed under the terms of the GNU General Public |
554 | | License as published by the Free Software Foundation. See the built-in |
| 554 | License as published by the Free Software Foundation. See the built\-in |
555 | 555 | help of the Midnight Commander for details on the License and the lack |
556 | 556 | of warranty. |
557 | 557 | .SH AVAILABILITY |
558 | 558 | The latest version of this program can be found at |
559 | | http://midnight-commander.org/. |
| 559 | http://midnight\-commander.org/. |
560 | 560 | .SH SEE ALSO |
561 | 561 | cooledit(1), mc(1), gpm(1), terminfo(1), scanf(3). |
562 | 562 | .SH AUTHORS |
563 | 563 | Paul Sheer (psheer@obsidian.co.za) is the original author of |
564 | 564 | the Midnight Commander's internal editor. |
565 | 565 | .SH BUGS |
566 | | Bugs should be reported to mc-devel@gnome.org |
| 566 | Bugs should be reported to mc\-devel@gnome.org |