Wednesday, July 11, 2012

source a file of commands as a script

source a file of commands as a script

I have a file that has commands to convert vCard email addresses to
tab delimited.

The file has many commands and works great.

I also tried bracketing all the commands with function! ... endf and
then call the function. That also works great.

One advantage to using the function, if there are multiple vCard files
to convert I can call the function, but could just as easily source
the script file.

Another advantage might be if conditionals were used, but they are
not.

Is there an advantage one way or the other?

It does not seem to run any faster as a function, surely i/o bound.

Bill

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: