Topic: Configure an empty buffer (1 of 1), Read 9 times, 1 File Attachment
Conf: VEDIT Macro Library
From: Scott Lambert
Date: Friday, June 11, 2010 05:50 PM

I may be re-inventing the wheel again here. This seems to be such an obvious macro to be included with Vedit, but if it is I can't find it in my version.

When you want to create a new file in an empty buffer, since you are not loading a file, the file configuration event macro doesn't run, so the empty buffer is not configured to the type of file you are creating. Now you can use File Save-as and give it a name and then drop to the command mode and do a Call(115), but that seems a pain, so I wrote configbuf.vdm

Configbuf.vdm will ask on the statline for the extension (no dot please) the new file will have (vdm, htm, c, txt), and if a configuration exists for that file extension will config the empty buffer. Else if it can't find the config file will say Config not Found on the Statline.