MCEDIT(1) GNU Midnight Commander MCEDIT(1) (NAME) mcedit - GNU Midnight Commander (SYNOPSIS) mcedit [-bcCdfhstVx?] [+lineno] [file1] [file2] ... mcedit [-bcCdfhstVx?] file1:lineno[:] file2:lineno[:] ... (DESCRIPTION) mcedit mc GNU Midnight Commander . GNU Midnight Commander . cooledit ( X) . (OPTIONS) +lineno ( + ). . -b . -c ANSI . -C =,,:= ... . Colors mc(1) . -d . -f GNU Midnight Commander. -t termcap terminfo. GNU Midnight Commander S-Lang terminfo . -V . -x xterm. xterm ( ) . (FEATURES) . . 64 . . : (undo) Shift ( ) (insert) (overwrite) (pipe) indent ispell. . mcedit : . "Window" . (KEYS) . F9 . . Shift ( ): Ctrl-Ins ~/.cache/mc/mcedit/mcedit.clip Shift-Ins ~/.cache/mc/mcedit/mcedit.clip Shift-Del ~/.cache/mc/mcedit/mcedit.clip Ctrl-Del . . Shift . mcedit . ( Meta-Tab Escape Tab) . (MACRO) Ctrl-R . Ctrl-R . . . [editor] ~/.local/share/mc/mc.macros . () mc.macros : [editor] ctrl-W=ExecuteScript:25; ctrl-W ExecuteScript(25) ~/.local/share/mc/mcedit/macros.d/macro.25.sh . ~/.local/share/mc/mcedit/macros.d/ macro.XXXX.sh XXXX 0 9999 . (Edit Menu File) . : #silent . %c . %i . %y (syntax) . %b . %f . %n . %x . %d . %F . %D . %t . %T . %u %U %t %T (untagged). . %s %S : . . : l comment selection TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 echo #if 0 > $TMPFILE cat %b >> $TMPFILE echo #endif >> $TMPFILE cat $TMPFILE > %b rm -f $TMPFILE Learn Keys Options . (CODE NAVIGATION) mcedit (tags) etags ctags . TAGS . exuberant-ctags C : ctags -e --language-force=C -R ./ Meta-Enter ( ). Meta-Minus "-" ( ). Meta-Equal "=" ( ). (SYNTAX HIGHLIGHTING) mcedit . ( C ) . ~/.local/share/mc/syntax/Syntax . /usr/share/mc/syntax/Syntax . ~/.local/share/mc/syntax/Syntax . . file . include . file . . cooledit mcedit . . . . (contexts) . . C ( /* */) . C . C : file .\*\\.c C\sProgram\sFile (#include|/\\\*) wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_ # default colors define comment brown context default keyword whole if yellow keyword whole else yellow keyword whole for yellow keyword whole while yellow keyword whole do yellow keyword whole switch yellow keyword whole case yellow keyword whole static yellow keyword whole extern yellow keyword { brightcyan keyword } brightcyan keyword '*' green # C comments context /\* \*/ comment # C preprocessor directives context linestart # \n red keyword \\\n brightred # C string constants context " " green keyword %d brightgreen keyword %s brightgreen keyword %c brightgreen keyword \\" brightgreen : context [exclusive] [whole|wholeright|wholeleft] [linestart] delim [linestart] delim [foreground] [background] [attributes] . context default [foreground] [background] [attributes] mcedit . linestart delim . whole delim . wholeleft wholeright . wholechars . : wholechars [left|right] characters exclusive . : keyword [whole|wholeright|wholeleft] [linestart] string foreground [background] [attributes] \t \s . \n \\ . . \* . * (wildcard) . keyword '*' green C . keyword "*" green . . : keyword \\\n brightgreen . C . : black () gray () red () brightred ( ) green () brightgreen ( ) brown () yellow () blue () brightblue ( ) magenta () brightmagenta ( ) cyan () brightcyan ( ) lightgray ( ) white (). "default" . "base" mc . 256 color16 color255 rgb000 rgb555 gray0 gray23 . cooledit mcedit cooledit : keyword #include red/Orange mcedit . cooledit cooledit(1) . (attributes) bold () italic () underline () reverse () blink () (+) . () (#) . caseinsensitive . . . . . . . . . Ctrl-s . (COLORS) MC_COLOR_TABLE . : MC_COLOR_TABLE="$MC_COLOR_TABLE:\ editnormal=lightgray,black:\ editbold=yellow,black:\ editmarked=black,cyan" (OPTIONS) Options . Options . ~/.config/mc/ini . . 1 0 . use_internal_edit mcedit . editor_tab_spacing . 8 . 8 8 . editor_fake_half_tabs . editor_fill_tabs_with_spaces ( 32) . editor_return_does_auto_indent return . editor_backspace_through_tabs backspace . editor_fake_half_tabs 4 8 ( ) . 4 . . editor_option_save_mode 0 1 2 . ( ) . (0) ( ) . . (1) . . . (2) : . . . editor_word_wrap_line_length (wrap). 72 . editor_backup_extension . "~" . editor_line_state . ( ). M-n . editor_visible_spaces << >>. editor_visible_spaces=1 '.' . editor_visible_tabs << >>. editor_visible_tabs=1 '<---->' . editor_persistent_selections . editor_drop_selection_on_copy . editor_cursor_beyond_eol . editor_cursor_after_inserted_block . editor_syntax_highlighting . editor_edit_confirm_save . editor_option_typewriter_wrap . editor_option_auto_para_formatting . editor_option_save_position . source_codepage ( CP1251 ~). editor_group_undo (UNDO) (/ ). editor_wordcompletion_collect_entire_file (1) (0). editor_wordcompletion_collect_all_files (1 ) (0). spell_language (en en-variant_0 ru ) aspell ( 'aspell' ). aspell spell_language = NONE . 'en' . [Misc] . editor_stop_format_chars . . "-+*\,.;:&>" . editor_state_full_filename . () . (MISCELLANEOUS) (160 ) . Midnight Commander display bits 7 . (FILES) /usr/share/mc/help/mc.hlp . /usr/share/mc/mc.ini GNU Midnight Commander ~/.config/mc/ini . /usr/share/mc/mc.lib Midnight Commander. ~/.config/mc/ini . /usr/share/mc/syntax/* mcedit ~/.local/share/mc/syntax/ . ~/.config/mc/ini . . ~/.local/share/mc/mcedit/ . (LICENSE) (GNU General Public License) . Midnight Commander . (AVAILABILITY) http://ftp.midnight-commander.org . (SEE ALSO) cooledit(1), mc(1), gpm(1), terminfo(1), scanf(3). (AUTHORS) Paul Sheer (psheer@obsidian.co.za) Midnight Commander . (BUGS) https://www.midnight-commander.org . MC Version 4.8.33 January 2025 MCEDIT(1)