From: Steve Hall <digitect@mi...> - 2005-11-16 22:52:39
From: "flr15flt05mp199@..." [Frank], Nov 16, 2005 10:08 AM
> > in Vim the command is
> > :read [filename]
> > I suppose this could be added to the Insert menu ...
> I had a look at cream_file_open. It seems to me
> (totally ignorant of vim) that it would suffice
> to change the line
> execute "edit " . myfile
> execute "read " . myfile
> Or am I just rushing to a wrong conclusion?
You're correct, although I think from an interface standpoint they
should not act the same. (Otherwise it is simple enough to open,
cut/paste, and close another document.)
Insert file is useful for tasks that are repetative, like the current
template system, but for larger blocks not waiting in memory. It might
also be mapped to a keystroke or a dialog of the 10 most recent
insertions. An open dialog would be cumbersome in high repetition.
What did you have in mind for using this feature?
> I also cannot understand how Cream (vim) can use
> Windows dialogs. Proprietary widgets in a GPL
A few basic dialogs are built in to gVim. (See :help on "confirm",
"inputdialog", and "browse".) My take is that use of OS widgets via
system calls does not violate the letter or spirit of the GPL. All Vim
source code is free, but particular builds may or may not be
compatible with a host system.
Of course Cream then depends on a particular build of Vim. Cream for
GNU/Linux have will very minor issues on Windows, such as toolbar icon
Steve Hall [ digitect mindspring com ]
:: Cream... something good to put in your Vim!