This patch is to enhance vi so it will run a command after each write, which can be used to implement WYSIWYG functionality, with ghostview. *** old/src/contrib/nvi/docs/USD.doc/vi.man/vi.1 Sun Mar 30 00:55:07 1997 --- new/src/contrib/nvi/docs/USD.doc/vi.man/vi.1 Sun Mar 30 01:00:20 1997 *************** *** 21,26 **** --- 21,28 ---- ] [\c .BI -c " cmd"\c ] [\c + .BI -C " cmd_after_write"\c + ] [\c .BI -t " tag"\c ] [\c .BI -w " size"\c *************** *** 32,37 **** --- 34,41 ---- ] [\c .BI -c " cmd"\c ] [\c + .BI -C " cmd_after_write"\c + ] [\c .BI -t " tag"\c ] [\c .BI -w " size"\c *************** *** 43,48 **** --- 47,54 ---- ] [\c .BI -c " cmd"\c ] [\c + .BI -C " cmd_after_write"\c + ] [\c .BI -t " tag"\c ] [\c .BI -w " size"\c *************** *** 108,113 **** --- 114,130 ---- This is the POSIX 1003.2 interface for the historic ``+cmd'' syntax. .I Nex/nvi supports both the old and new syntax. + .TP + .B \-C + Execute + .B cmd_after_write + immediately after every file write, (via system(3)). + Can be used to call tools like make, + to read newly updated vi source file, + then generate a new postscript equivalent output file, + then send a signal + to a program such as ghostview, to request a reopen (& display of newly reformatted data) . + .\" A periodic auto. write option would also be nice. .TP .B \-e Start editing in ex mode, as if the command name were