* PE32 Default Keys (JRB John R. Barnes 10/31/2004) * Set the screen display size to 25 x 80 (JRB) set display large font * Margins 1 to 254, paragraph starts at 1 (no indent), max char 32767 set margins 1 254 1 32767 * Tabs at 9 17 25 ... set tabs 9 8 * Set screen colors (data, selected data, command line, dialog boxes) * Background Foreground set colors blue brightwhite \ red brightwhite \ green brightwhite \ brightwhite red \ brightWhite blue * Set extensions to use coloring scheme 0 set syntaxcoloringext0 .cxx .cpp .c .inl .hxx .hpp .h .tlh .tli * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring0 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset0 tabs 5 4, delimiters "\t\n\r [](),'+-*=/\\\"" * Set the profile file for syntax coloring * set syntaxcoloringpro0 cpp.pro * Set extensions to use coloring scheme 1 set syntaxcoloringext1 .htm .html * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring1 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset1 tabs 9 8, delimiters "\t\n\r" * Set the profile file for syntax coloring * set syntaxcoloringpro1 html.pro * Set extensions to use coloring scheme 2 set syntaxcoloringext2 .txt .doc .hlp .msg * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring2 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset2 tabs 1 17 25 43, delimiters "\t\n\r [](){}<>,;:.!?'+-*=/\\\" * Set the profile file for syntax coloring * set syntaxcoloringpro2 txt.pro * Set extensions to use coloring scheme 3 set syntaxcoloringext3 .bat .cmd * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring3 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset3 tabs 9 8, delimiters "\t\n\r" * Set the profile file for syntax coloring * set syntaxcoloringpro3 bat.pro * Set extensions to use coloring scheme 4 set syntaxcoloringext4 .pro * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring4 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset4 tabs 9 8, delimiters "\t\n\r [](){}<>,;:.!?'+-*=/\\\" * Set the profile file for syntax coloring * set syntaxcoloringpro4 pro.pro * Set extensions to use coloring scheme 5 set syntaxcoloringext5 .vbs * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring5 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset5 tabs 3 2, delimiters "\t\n\r ()<>,.'+-*=/\\\" * Set the profile file for syntax coloring * set syntaxcoloringpro5 vbs.pro * Set extensions to use coloring scheme 6 set syntaxcoloringext6 .asm * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring6 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset6 tabs 1 17 25 43, delimiters "\t\n\r [](){}<>,;:.!?'+-*=/\\\" * Set the profile file for syntax coloring * set syntaxcoloringpro6 asm.pro * Set extensions to use coloring scheme 7 set syntaxcoloringext7 .vb * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring7 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset7 tabs 3 2, delimiters "\t\n\r ()<>,.'+-*=/\\\" * Set the profile file for syntax coloring * set syntaxcoloringpro7 vb.pro * Set extensions to use coloring scheme 8 set syntaxcoloringext8 .js * Set screen colors for syntax coloring * (language keywords, operators, strings, numbers, remarks and system keywords) * Background Foreground set syntaxcoloring8 blue lightaqua \ blue lightaqua \ blue lightyellow \ blue lightyellow \ blue green \ blue aqua * Set the setting commands for syntax coloring set syntaxcoloringset8 tabs 3 2, delimiters "\t\n\r ()<>,.'+-*=/\\\" * Set the profile file for syntax coloring * set syntaxcoloringpro8 js.pro * Set default printer set printer lpt1 * Set extensions to backup set backup .cpp .c .hpp .h * Modifier to up/down arrows to control history (when on command line) * Modifier to up/down arrows to enter history dialog (when on not command line) set historyon shift * When saving file leave blanks alone (JRB) set linetrim off * No context help file ... set to path for the compiler help of your choice set helpfile * Set to overwrite existing files after a confirming message (JRB) set confirm on * Start in insert character mode set insert on * Define format of [date] command ... s-f11 will insert actual date as text (JRB) set date [mm]/[dd]/[yyyy] * Define format of [time] command ... s-f12 will insert actual time as text (JRB) set time [12]:[mm][am] * Disable password protection for files set encryption off * Set to remember cursor position between edits set restorecursor on * Status line enabled with bright white on black color * (lightyellow on black if file is modified) set StatusLine on black brightwhite lightyellow on * Enable the command line * Moving off command line set to move from prior cursor position (JRB) set commandline on on * Enable backspace over dummy blank lines at end of line set bkspinfreespace on * Set ctrl-Z in file set eof on * Set LF to separate lines set linefeed on * Set CR to separate lines set carriagereturn on * Enable word wrapping at right margin set wordwrap on * Allow lower case characters set uppercase off * Force the initial cursor into data set oncommand off * Start with menu system off (JRB) set onmenu off * When opening file tabs will be expanded to columns 8 columns apart set tabexpand 8 * Set Tab, CR, LF, and blank as characters that separate words set delimiters "\t\n\r " * Disable blanks compression to tab while saving set blankcompress off * Turn off screen updates during script processing set vbsrefresh off * Default script timeouts (1 minute) set vbstimeout 60000 * Enable this line to load your own vbs file * set vbsload "" * Set the number of lines to scroll with the mouse wheel set wheelscrollline 1 * Enable this line to change the characters codepage * set codepage 437 * Enable this line to change the borders characters * set borders ͺij * Set the cursor height in overwrite and insert mode set cursor 20 90 * Enable the display of the bookmarks set showbookmarks on * Set the default locate switches to h and g set locateswitch hg * Enable this line to change the default change switches set changeswitch p * Set the time in seconds to automatically save the modified files set autosave 0 * Set the number of lines to search back for unknown words in autocomplete set linesback 10000 * Set the key to press with the space bar to activate the expand command (JRB) set expandon scrolllockon * Set the key to press with the space bar to activate the autocomplete command (JRB) set autocompleteon scrolllockon * Set the key to press with the arrow keys to enable the text marking set markon shift * Set the mouse button to press to open the context popup menu set popupmenuon off off * Enable this line to insert blanks pressing the tab key in insert mode * set tabinsert off * Enable this line to set the system oem or ansi codepage * set charset oem * * Synonyms * * Shortcuts to screen display sizes syn s25 = [set display 25 80] syn s30 = [set display 30 80] syn s40 = [set display 40 80] syn s50 = [set display 50 80] syn max = [set display max] * * General macros * * * Regular keys * * Cursor movement keys def up = [up] def down = [down] def left = [left] def right = [right] * Page up (two lines overlap) def pgup = [page up] [bottom edge] [down 2] * Page down (two lines overlap) def pgdn = [page down] [top edge] [up 2] * Move cursor to beginning of line def home = [begin line] * Move cursor to end of Line def end = [end line] * Flip between insert and replace character modes def ins = [insert toggle] * Delete character under the cursor def del = [delete char] * Split line at cursor, indent next line same as this one (JRB) def enter = [split] [push mark] [begin line] [mark char] [first nonblank] [mark char] [begin line] [down] [copy mark] [unmark] [first nonblank] [delete char] [pop mark] * Erase character before cursor and move cursor left (stop at first column def backspace = [rubout] * Flip cursor between command line and file text (command toggle) def esc = [command toggle] * Move cursor to next tab position def tab = [tab] * View help text def f1 = [view \pe32jrb.hlp] * Save changes to file def f2 = [cursor command] [begin line] [erase end line] 'save' * Setup to save changes to file and close def f3 = [cursor command] [begin line] [erase end line] 'file ' * Exit file without saving changes def f4 = [quit] * Erase beginning of line def f5 = [erase begin line] [begin line] * Erase to end of line def f6 = [erase end line] * Print file def f7 = [cursor command] [begin line] [erase end line] 'print' * Edit next file def f8 = [edit] * Insert a blank line def f9 = [insert line] * Make F10 to F12 undefined def f10 = '' def f11 = def f12 = def padplus = '+' def padminus = '-' def space = ' ' * * Shift keys * def s-up = '8' def s-down = '2' def s-left = '4' def s-right = '6' def s-pgup = '9' def s-pgdn = '3' def s-home = '7' def s-end = '1' def s-ins = '0' def s-del = '.' def s-pad5 = '5' * Move cursor to prior tab (JRB) def s-tab = [backtab] * Next full page up (JRB) def s-f1 = [page up] * Next full page down (JRB) def s-f2 = [page down] * Undefine this key def s-f3 = '' * Undo edits def s-f4 = [undo] * Confirm change def s-f5 = [confirm change] * Undefine this key def s-f6 = '' * Erase first column of marked area def s-f7 = [shift left] * Add blank column to start of marked area and erase last column def s-f8 = [shift right] * Open file list def s-f9 = [dir] * Open opened file list def s-f10 = [open] * Insert date as text def s-f11 = [date] * Insert time as text def s-f12 = [time] * * Ctrl keys * * Fix cursor position and scroll viewing area def c-up = [scrollup] def c-down = [scrolldown] * Move to previous word def c-left = [backtab word] * Move to next word def c-right = [tab word] * Move cursor to top edge of screen def c-pgup = [top edge] * Move cursor to bottom edge of screen def c-pgdn = [bottom edge] * Move cursor to top of file def c-home = [top] * Move cursor to bottom of file def c-end = [bottom] * Delete word (JRB) def c-del = [delete word] * Execute command on command line def c-enter = [execute] * Delete current line def c-backspace = [delete line] * Select entire file def c-a = [unmark] [top] [mark line] [bottom] [mark line] * Make window big (JRB) def c-b = [zoom window] * Copy to clipboard def c-c = [copy to clipboard] * Divide screen into windows def c-d = [split screen] * Copy from command line onto new line below cursor (JRB) def c-e = [copy from command] * Locate a search string (JRB) def c-f = [cursor command] [begin line] [erase end line] 'l /' * Repeat command def c-g = [execute] * Locate and change text def c-h = [cursor command] [begin line] [erase end line] 'c /' * Jump to next view of this file def c-j = [next view] * Edit key definitions def c-k = [edit .keydefs] * Force mark to lower case def c-l = [lowercase] * Center text in margins def c-m = [push mark] [mark line] [center in margins] [unmark] [pop mark] * Like [edit] for windows def c-n = [next window] * Open opened file list def c-o = [open] * Print file def c-p = [cursor command] [begin line] [erase end line] 'print' * Add comma and tack on next line def c-q = [end line] ', ' [end line] [join] * Repeat line def c-r = [push mark] [mark line] [copy mark] [pop mark] * Save file (JRB) def c-s = [cursor command] [begin line] [erase end line] 'save' * Copy line with cursor on it to command line def c-t = [copy to command] * Force mark to upper case def c-u = [uppercase] * Copy from clipboard def c-v = [copy from clipboard] * Quit (JRB) def c-w = [quit] * Cut to clipboard def c-x = [begin mark] [copy to clipboard] [delete mark] * After undo re-apply the change def c-y = [redo] * Undo edits def c-z = [undo] * Correspondence setup (JRB) def c-f1 = [cursor command] [begin line] [erase end line] 's margins 8 73' [execute] [begin line] [erase end line] 's tabs 13 48' [execute] [insert mode] * Center line in window (JRB) def c-f2 = [center line] * Move to end of word (JRB) def c-f3 = [end word] [right] * Terminate line, move to beginning of next line (JRB) def c-f4 = [split] [down] [begin line] * Delete rest of word (JRB) def c-f5 = [unmark] [mark char] [tab word] [left] [mark char] [begin mark] [delete mark] * Locate and replace text def c-f6 = [cursor command] [begin line] [erase end line] 'c /' * Print marked area def c-f7 = [print mark] * Tack spaces to beginning and end of line (JRB) def c-f8 = [insert mode] [begin line] ' ' [end line] ' ' [down] * Execute the command on this line from beginning to end of file (JRB) def c-f9 = [copy to command] [top] [execute] [down] * Char mark entire line (JRB) def c-f10 = [unmark] [begin line] [mark char] [end line] [left] [mark char] [down] * Copy marked area to beginning of line (JRB) def c-f11 = [begin line] [copy mark] [down] [center line] * Copy marked area to end of line (JRB) def c-f12 = [end line] [copy mark] [down] [center line] * Turn command and status lines off def c-padminus = [cursor command] [begin line] [erase end line] \ 'set commandline off' [execute] [cursor command] \ 'set statusline off' [execute] [cursor data] * Turn command and status lines on def c-padplus = [cursor command] [begin line] [erase end line] \ 'set commandline on' [execute] [cursor command] \ 'set statusline on' [execute] [cursor command] * * Alt keys * * Scroll up one line JRB def a-a = [scrollup] * Mark one corner of a rectangular block mark def a-b = [mark block] * Mark first or last character of a paragraph style block def a-c = [mark char] * Delete mark def a-d = [delete mark] * Move to end of marked area def a-e = [end mark] * Fill marked area (character will be prompted) def a-f = [fill mark] * Join two lines def a-j = [join] * Mark first/last/only line of a group of lines def a-l = [mark line] * Move mark to current location def a-m = [move mark] * Add Next page separator (form feed) def a-n = [insert line] [012] * Overlay marked block at current location def a-o = [overlay block] * Reflow the remainder of the current paragraph, * position cursor to presumed start of next paragraph def a-p = [cursor data] [push mark] [mark line] [find blank line] [up] \ [mark line] [reflow] [end mark] [down] [tab word] [pop mark] * Mark character (JRB) def a-q = [mark char] * Split line into two lines at cursor position (cursor does not move) def a-s = [split] * Unmark block def a-u = [unmark] * Scroll down one line (JRB) def a-v = [scrolldown] * Mark next word def a-w = [unmark] [tab word] [mark char] [end word] [right] [mark char] [begin mark] * Take next character exactly def a-x = [escape] * Goto top of marked area def a-y = [begin mark] * Copy marked area def a-z = [copy mark] * Exit all edits def a-f4 = [quit all] * Locate a search string (JRB) def a-f5 = [cursor command] [begin line] [erase end line] 'l /' * Undefine these to keep them from causing trouble def a-0 = '' def a-1 = '' def a-2 = '' def a-3 = '' def a-4 = '' def a-5 = '' def a-6 = '' def a-7 = '' def a-8 = '' def a-9 = '' * * Ctrl+Shift keys (User keys) * * * Commands to run at execution time *