CE - Simple easy to use unix text editor
CE [ -keyset ] | [ -w -m -s -hhelpfile -lline# ] filename
CE is a simple easy to use UNIX editor. It is designed to be used with minimal training. It can use special keys on terminals that support them.
Note: CE only will handle file length up to a pre-defined limit. The default is 15000 lines. A later version will handle any number of lines.
-keyset forces CE to create a keymap file in the users home directory for the terminal type which the user is currently using. The file name will be ~/.ce/cekm.vt100 where vt100 is replaced by the particular terminal type.
Note: If you invoke this multiple time, the file will be appended to, as can map multiple sequences to the same key. To reset this file you must delete it by hand
Note: It is possible to create a user keymap for a particular terminal that overrides the system wide keymap for that user by using this option.
-w Toggle wordwrap. -m Toggle the mini-menu on/off -s Toggle scrolling (SmoothScroll/PageScroll) -lline# starts CE up with the cursor sitting on line# instead of line number 1. This is most useful for Newsreaders that pre-fill in the newsheaders, see ce.tech.doc for more. -hhelpfile forces CE to use helpfile as its help display. This allows context-sensitive help for those sysadmins who wish to invest the time into it. filename The filename to be edited. When the file is updated by CE, a backup copy will be created with the name filename.bak
SAVING/EXITING ESC 1 or F1 Save and exit ESC 2 or F2 Save and resume editing ESC 3 or F3 Save with prompt for filename then exit ESC 4 or F4 Exit and do not save file NAVIGATING Control B (PgUp) Page backward through file (beeps on first page) Control G Goto a line Control Z (Home) Move cursor to beginning of line Control X Move cursor to middle of line Control C (End) Move cursor to end of line INSERTING Control P Insert a blank line at current location Control K Insert many blank lines at current location Control A Insert the last line deleted at current location DELETING Control D Delete current line Control N Delete marked text Control W (DEL) Erase character under cursor Control E Erase many characters MOVING/COPYING ESC 9 or F9 Begin/End block marking ESC 0 or F10 Clear block markings ESC - or F11 Copy block to current location ESC = or F12 Move block to current location OTHER Control R Search for text Control T (Insert) Toggle between insert and overwrite mode Control Y Read a file into text at current location Control U Join current line and next together Control O Set left column and set tab size Control L Re-draw screen Control V Show vital statistics about current file ESC m Toggle Mini menu on or off ESC h Help ESC s Save current CE settings ESC k Create a personalize keymap file ESC 6 or F6 Save file and execute shell escape #1 ESC 7 or F7 Save file and execute shell escape #2
If the function keys have been defined correctly for the terminal using keyset the function keys can be used in place of the ESC-1, etc.
The following operations apply only while you are marking a block.
Pressing TAB will shift the block TABSIZE spaces to the right.
Pressing RTAB will shift the block TABSIZE spaces to the left.
Pressing Control E will erase X characters from the beginning of each marked line.
Pressing Control Z will left justify the block
Pressing Control X will center the block
Pressing Control C will right justify the block
The following operations apply to blocks that are marked, or being marked.
Pressing Control N will delete the marked lines, this action will end marking.
You can customize the default settings at startup by creating the file ~/.ce/cerc in your home directory. The following is an example .cerc file: ,nf # 0 means off, 1 means on.
# shell1 and shell 2 define what actions will happen on pressing of F6/F7 # The first will be filename, whilethe second will be the filename # without the .* extension
insert_mode 0 tab_space 4 left_margin 1 word_wrap 1 no_bak_files 0 mini_help 0 no_scroll 0 shell1 "spell %s" shell2 "cc %s -o %s -lm"
Note: When loading documents into CE, all tabs are expanded to spaces! When CE reads in a file, it converts all tabs to spaces!
When you press Control O the left column it displays defaults to the column your cursor is in, to make editing columns easier.
When you press Control E for the first time it will default to 90 characters, which in effect will blast everything from the current position to the end of the line. So you can use this is a DEL to end of line function.
All comments and suggestions are welcome, to get them to me, just mail them to
and I will get back to you as soon as possible. If you find any bugs with the editor, by all means mail me. If you want to talk to the original author, I'll forward your message to him.
I hope you find this easy to use, as that was my original intention.
/usr/local/lib/ce/cekm.* system wide keymap files /usr/local/lib/ce/cerc system wide rc file $HOME/.ce/cekm.* user specific keymap files $HOME/.ce/.cerc user rc file
1. Remappable keyboard support
2. Add comments to cehelp.c and cefunc.c
3. Go through curses.[ch] and rip out all the unnecesaries.
4. Should do unlimited number/size of lines.
5. Re-write the whole mess (Sometime in the year 2010 :)
Charles Henrich (No dont blame me! I didnt mean it! Honest! Its all Severances fault!)
CE v1.2 Copyright (C) 1991-95, Charles R. Henrich, All Rights Reserved.
|SunOS 5.8||CE (1)|