This message was posted in comp.editors. A few irrelevant details in the text were deleted or replaced with [...] From: ray@camco1.celestial.com (Ray A. Jones) Newsgroups: comp.editors Subject: Re: VI-like HTML-Editor Date: 17 Feb 1996 01:42:30 GMT Organization: Celestial Software Lines: 232 : > I use vi for HTML editing and have 12 macros (one for each function key). : > The 12th function key is a "macro switch" macro to change to a whole : > different set of macros for those 12 function keys. [...] : > The href macro works like: : > This is a reference : > ^- cursor : > [press function key 5] : > This is a reference : > ^- cursor : > with vi in the change word mode. At that point, just type in the file name I got buried in request for those macros, so yes, I will post them here. Enclosed are the files .exrc .level1 same as .exrc .level2 .level3 .level4 .level5 Unpack the files with either the "unshar" option of your E-mail reader or save to a file and delete everything above and including the =====cut here=== line. Then give the command; sh filename The file will complain about control characters in the file, but that is ok. NOTE: you must move any current .exrc file to some other name, as this program will not overwrite an existing .exrc file. The macros are set up for "ansi" terminals, i.e., function keys 10 through12 are actual function key escape sequences. All other key use the #1 throught #9 formats. If you are not using ansi terminals, let me know and I will tell you how to change those. You MUST move your current .exrc file to some other name prior to unpacking these files - the unpacking process will not overwrite an existing file. To move from one file to another (there are only 12 function keys and I needed about 50), press function key 12 and it will print; :so .level at this point give a number (1-5) so the screen looks like; :so .level2 and press [RETURN] to load up the .level 2 file. The first level (.exrc or level1) all work in the command mode and will do the following 1
10 ispell spell check the current document (needs ispell)
11 header information at begining of file
12 level change.
--
INTERNET: ray@Celestial.COM Ray A. Jones; Celestial Systems, Inc.
URL: http://www.celestial.com 2835 82nd Ave. SE, Suite S-100
Mercer Island, WA 98040; (206) 236-1676
The probability of one or more spelling errors in this missive approaches
unity. If this bothers you, run it through your spell checker!
=================================cut here===================================
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh
Xmap [W I
Xmap [W I
Xmap #7 `ii
Xmap #8 `ii
Xmap #9 `ii
Xmap [X :so .level
END_OF_FILE
echo shar: 5 control characters may be missing from \"'.level2'\"
if test 530 -ne `wc -c <'.level2'`; then
echo shar: \"'.level2'\" unpacked with wrong size!
fi
# end of '.level2'
fi
if test -f '.level3' -a "${1}" != "-c" ; then
shar: Will not clobber existing file \"'.level3'\"
else
echo shar: Extracting \"'.level3'\" \(373 characters\)
sed "s/^X//" >'.level3' <<'END_OF_FILE'
Xmap #1 'aIA
Xmap #2 IA
Xmap #3 IA
Xmap #4 IA
Xmap #5 ieak/XX
cw
Xmap #6 bma
Xmap #7 emb
Xmap #8 iwea
Xmap #9 A
Xmap [V :w! /tmp/spellchk.tmp
:!ispell /tmp/spellchk.tmp
1GdG:0r /tmp/spellchk.tmp
dG
Xmap [X :so .level
END_OF_FILE
echo shar: 17 control characters may be missing from \"'.exrc'\"
if test 361 -ne `wc -c <'.exrc'`; then
echo shar: \"'.exrc'\" unpacked with wrong size!
fi
# end of '.exrc'
fi
if test -f '.level1' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'.level1'\"
else
echo shar: Extracting \"'.level1'\" \(361 characters\)
sed "s/^X//" >'.level1' <<'END_OF_FILE'
Xmap #1 IA
Xmap #2 IA
Xmap #3 IA
Xmap #4 IA
Xmap #5 ieak/XX
cw
Xmap #6 bma
Xmap #7 emb
Xmap #8 iwea
Xmap #9 A
Xmap [V :w! /tmp/spellchk.tmp
:!ispell /tmp/spellchk.tmp
1GdG:0r /tmp/spellchk.tmp
dG
Xmap [X :so .level
END_OF_FILE
echo shar: 17 control characters may be missing from \"'.level1'\"
if test 361 -ne `wc -c <'.level1'`; then
echo shar: \"'.level1'\" unpacked with wrong size!
fi
# end of '.level1'
fi
if test -f '.level2' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'.level2'\"
else
echo shar: Extracting \"'.level2'\" \(530 characters\)
sed "s/^X//" >'.level2' <<'END_OF_FILE'
Xmap #1 oO
Xmap #2 `ii
Xmap #3 `ii
Xmap #4 `ii
Xmap #5 `ii
Xmap #6 `ii Yes No
O
O