Manual Reference Pages  - CE (1)


CE - Simple easy to use unix text editor


Editing Commands
Block Operations
Personal Configuration
Bugs/future Features


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.


  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)
  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 for more.
  forces CE to use helpfile as its help display. This allows context-sensitive help for those sysadmin’s who wish to invest the time into it.
  The filename to be edited. When the file is updated by CE, a backup copy will be created with the name filename.bak
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.


ESC 1 or F1Save and exit
ESC 2 or F2Save and resume editing
ESC 3 or F3Save with prompt for filename then exit
ESC 4 or F4Exit and do not save file
Control B (PgUp)Page backward through file (beeps on first page)
Control GGoto a line
Control Z (Home)Move cursor to beginning of line
Control XMove cursor to middle of line
Control C (End)Move cursor to end of line
Control PInsert a blank line at current location
Control KInsert many blank lines at current location
Control AInsert the last line deleted at current location
Control DDelete current line
Control NDelete marked text
Control W (DEL)Erase character under cursor
Control EErase many characters
ESC 9 or F9Begin/End block marking
ESC 0 or F10Clear block markings
ESC - or F11Copy block to current location
ESC = or F12Move block to current location
Control RSearch for text
Control T (Insert)Toggle between insert and overwrite mode
Control YRead a file into text at current location
Control UJoin current line and next together
Control OSet left column and set tab size
Control LRe-draw screen
Control VShow vital statistics about current file
ESC mToggle Mini menu on or off
ESC hHelp
ESC sSave current CE settings
ESC kCreate a personalize keymap file
ESC 6 or F6Save file and execute shell escape #1
ESC 7 or F7Save 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

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/cercsystem wide rc file
$HOME/.ce/cekm.*user specific keymap files
$HOME/.ce/.cercuser 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 Severance’s fault!)


CE v1.2 Copyright (C) 1991-95, Charles R. Henrich, All Rights Reserved.

SunOS 5.8 CE (1)
Generated by manServer 1.07 from ce1.2.15r/ce.1 using man macros with tbl support.