home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
M-BRIEF.ZIP
/
EDITOR.DOC
< prev
next >
Wrap
Text File
|
1988-07-24
|
6KB
|
192 lines
/* EDITOR.doc
**
** Copyright (c) 1988, Christopher Laforet
** All Rights Reserved
**
*/
** Updated: Sat, 23-Jul-1988 :: 21:40:50
This document describes the state of the MicroSoft Editor as configured
by myself as of 5-30-88. The following keystrokes attempt to emulate the
wonderfully natural feel of Brief (Copyright by Underware Inc.). There are
some stupid inconsistencies which have been created by the seemingly
short-sighted programmers at MicroSoft (one is the inability to use the ALT-N
to switch between ALL files being currently edited). Needless to say, I
have spent many frustrating hours at the computer attempting to correct for
some of the stupid syntax that MicroSoft applied to many of their functions.
Well, without any further ado, I'll describe the functions.
1. Cursor Movement
---------------
Up - Up Arrow
Down - Down Arrow
Left - Left Arrow
Right - Right Arrow
Page Up - PgUp
Page Down - PgDn
Top of File - Ctrl Home
Bottom of File - Ctrl End
Top of Window - Home
Bottom of Window - End
Beginning of Line - Ctrl PgUp
End of Line - Ctrl PgDn
Left of Window - Shift PgUp
Right of Window - Shift PgDn
Previous Word - Ctrl Left Arrow
Next Word - Ctrl Right Arrow
Top of Paragraph - Ctrl Up Arrow
Bottom of Paragraph - Ctrl Down Arrow
Newline - Enter
Delete Previous Character - Bksp
Delete Character under Cursor - Del
Insert Line on Current Line - Shift Enter
Insert Line on Next Line - Ctrl Enter
Tab - Tab
BackTab - Shift Tab
Set a Tag - Alt S
Jump to Tag - Alt J
Go to a Specific Line - Alt G
Delete Text from Cursor to End of Line - Alt K
Delete a Line - Alt D
2. Block Commands
--------------
Mark - Alt M
Delete - Delete
Copy to Scrap - F9 or Num+
Cut to Scrap - F10 or Num-
Insert Scrap - Ins
3. Searching and Replacement
-------------------------
Search Forwards - F5
Search Backwards - Shift F5
Find Next - Shift F6
Toggle Case Sensitivity - Alt C
4. File Handling and Windows
-------------------------
Change to Other Buffered File - Alt N
Edit Another File, Buffer Current - Alt E
Show List of Previously Editied Files - Alt B
Load Filename Under Cursor - Ctrl O
Change Filename - Alt O
Write File - Alt W
Read File in at Current Cursor Location - Alt R
Split Window Horizontally - F2
Split Window Vertically - F1
Split Window Horizontally at Cursor Position - Shift F2
Split Window Vertically at Cursor Position - Shift F1
Jump to Next Window - F3
Remove a Window - F4
Get Keystroke List - Alt H
Shell to DOS - Alt Z
Exit Editor - Alt X
5. C Specific Macros
-----------------
If - Ctrl I
Else - Ctrl E
Do-while - Ctrl D
While - Ctrl W
For - Ctrl F
Switch - Ctrl S
Case - Ctrl C
Include - Ctrl P
Braces - Ctrl [
Parentheses - Ctrl ]
Main - Ctrl M
Header - Ctrl H
Balance Braces and Parens - Alt P
Compile - Ctrl F9
Next Error Message - Ctrl F10
6. Word Processing
---------------
Toggle Auto Indenting - Alt Y
Toggle Tabs Expanded to Spaces - Alt T
Toggle Word Wrapping - Alt Q
Convert Marked Line (Textarg) to Uppercase - Ctrl U
Convert Marked Line (Textarg) to Lowercase - Ctrl L
Write Time Stamp - Ctrl T
Quote Next Character as Graphic - Ctrl G
7. Special Commands
----------------
Arg (Mark) - Alt M
Meta - Alt L
Assign - Alt A
Undo - Alt U or Num*
Toggle Insert Mode - Alt I
The previous macros are supplied in 4 files....These are the TOOLS.INI file,
the STDMACRO.EXE, the C_MACRO.EXE and the EXTMACRO.EXE. Please note that you
will have to adjust the TOOLS.INI file as per where the 3 executables must be
loaded from. I currently have them loading from my RAMDISK (drive e:\)....
Word of warning: Be careful using Alt X to exit...make sure that you have
written ALL files that you wish to keep with Alt W BEFORE EXITING. The dumb
MS editor does not ask if one is sure about the exit, EVEN THOUGH THE TOOLS.INI
file has askexit: set!!! Hopefully one day it will respond to that switch!
You will notice that backup type is set to BAK. If you do lots of editing,
you will find that UNDEL wastes loads more disk space than the convenience is
worth. Feel free to change that if you wish.
Do not forget to set the following environment variables (preferably in your
autoexec.bat). Set INIT=<path where tools.ini will be found> and Set TMP=<some
temporary directory or RAMDISK for the editor to use as virtual memory>. I have
edited files as large as 350K without any problems with the TMP variable set
pointing to a "scratch" directory (d:\tmp) on one of my drives. If you find
that you get the message "Out of VM space. Attempting to recover", make sure
that your TMP variable is set and is pointing to an adequately sized disk area
(especially if you are using a RAMDISK).
Contacting me for suggestions or comments may be via any of the following
channels:
US-Mail:
Christopher Laforet
511-D Poplar St
Graham, NC 27253.
Fidomail:
Chris Laforet, c/o 151/401, Fido's One Dish.
Compuserve Email:
Chris Laforet, 76120,110.
BBS:
The Programmer's Oasis, (919) 226-6957.
Needless to say, I am a free agent and may or may not choose to act on
suggestions given to me.
One more point: There are absolutely NO warranties on these macros....if they
work for you, fine! If they don't, delete them! I am just offering them to
you if you want them, other than that do with them as you wish! Break them and
as Wynn Wagner says, the only warranty you have is that you get to keep both
broken pieces! 'Nuff said!