Documentation and macro enhancements
parent
deb530d409
commit
d7dffdeb1d
|
@ -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
|
||||
file.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
BIN
doc/Summary.pdf
BIN
doc/Summary.pdf
Binary file not shown.
|
@ -1 +1 @@
|
|||
-ll ! goto the beginning of a line !
|
||||
0l ! goto the beginning of a line !
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
[0+0U0Q0"E1U0'Q0">Q0<<0A"R|0;'C><0A"R0;'C>>|-Q0<<-A"R0;'-C><-A"R|0;'-C>>']0
|
||||
[0+0U0Q0"E1U0'Q0">Q0<<0A"R|0;'C><0A"R0;'C>>|-Q0<<-A"R0;'-C><-A"R|0;'-C>>']0
|
||||
! goto beginning of next word - can take an argument !
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
! delete line remainder !
|
||||
ki
|
||||
2r
|
|
@ -1 +1,2 @@
|
|||
[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'D><0A"R|0;'D>>|-Q0<<-A"R0;'-D><-A"R|0;'-D>>']0
|
||||
[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'D><0A"R|0;'D>>|-Q0<<-A"R0;'-D><-A"R|0;'-D>>']0
|
||||
! delete n words forward !
|
|
@ -1 +1,2 @@
|
|||
[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'C><0A"R|0;'C>>|-Q0<<-A"R|0;'-C><-A"R0;'-C>>']0
|
||||
[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'C><0A"R|0;'C>>|-Q0<<-A"R|0;'-C><-A"R0;'-C>>']0
|
||||
! goto end of word - takes argument !
|
|
@ -1 +1,2 @@
|
|||
[0-1U0JQ0J]0
|
||||
[0-1U0JQ0J]0
|
||||
! jump to line n (starting at line 1) !
|
|
@ -0,0 +1,3 @@
|
|||
! add new line after current line !
|
||||
li
|
||||
-l
|
|
@ -0,0 +1,3 @@
|
|||
! add new line before current line !
|
||||
0li
|
||||
-l
|
|
@ -0,0 +1,3 @@
|
|||
-1^x ! enable case sensitive searches !
|
||||
0,16ed ! retain dot after failed searches !
|
||||
$$
|
Loading…
Reference in New Issue