Documentation and macro enhancements

Blake McBride 2015-06-06 10:29:56 -05:00
parent deb530d409
commit d7dffdeb1d
13 changed files with 2074 additions and 10 deletions

View File

@ -60,9 +60,17 @@ You should set that environment variable to the directory (full path)
where the macros are to exist. Note that TEC_LIBRARY must contain a
trailing slash.
When teco starts up, it is capable of running a start-up file to set
initial preferences. The file must be specified by the TEC_INIT
environment variable. The value of that variable must start with a
dollar sign ($) followed by the complete path to the start-up file.
For example, on a Unix like system you could use:
export TEC_INIT=\$/home/me/teco/teco.ini
Lastly, the "tec" file extension means "teco macro". There is also a
file type "tes". That stands for "teco macro source". Generally, if you
have a small macro, you'd just put it in a .tec file. Larger macros
would be written in a .tes file allowing comments and space. Later
the squeeze function can be used to convery a .tes file into a .tec
the squeeze function can be used to convert a .tes file into a .tec

doc/Summary.lyx 100644

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -1 +1 @@
-ll ! goto the beginning of a line !
0l ! goto the beginning of a line !

View File

@ -1 +1,2 @@
! goto beginning of next word - can take an argument !

View File

@ -7,6 +7,7 @@
File Commands
EX save file - exit
-1EX exit without saving
EBfile open file for input/output with backup
ERfile open input file for reading
EWfile open output file for writing
@ -22,20 +23,24 @@ Positioning Commands
J jump to beginning of buffer
nJ jump to character position n
ZJ jump to end of file
L beginning of next line
nL move n relative lines (0 means beginning of line)
nL move n relative lines
0L go to beginning of line
L-2C go to end-of-line
C move forward one character
nC move n characters
R move reverse one character
nR move n relative characters
nR move n reverse characters
Stext$ search buffer for text (position after search string)
(if no text use previous search text)
-Stext$ search reverse
Ntext$ search entire file from current position
nS search for the nth occurance (negative n means reverse)
nN search for the nth occurance (all pages)
Type Commands
Type Commands (non-video mode only)
T type current position to EOL
nT type n relative lines (0 means from BOL)
@ -48,8 +53,10 @@ Text modification commands
Itext$ insert text
@I/txt/ insert txt (may contain escapes)
0LK delete entire line
0LnK delete n lines
K kill to EOL
nK kill n relative lines (0 meands BOL to current position)
nK kill n relative lines (0 means BOL to current position)
HK kill whole buffer
D delete one character
nD delete n relative characters

lib2/dlr.tec 100644
View File

@ -0,0 +1,3 @@
! delete line remainder !

View File

@ -1 +1,2 @@
! delete n words forward !

View File

@ -1 +1,2 @@
! goto end of word - takes argument !

View File

@ -1 +1,2 @@
! jump to line n (starting at line 1) !

lib2/nla.tec 100644
View File

@ -0,0 +1,3 @@
! add new line after current line !

lib2/nlb.tec 100644
View File

@ -0,0 +1,3 @@
! add new line before current line !

lib2/teco.ini 100644
View File

@ -0,0 +1,3 @@
-1^x ! enable case sensitive searches !
0,16ed ! retain dot after failed searches !