Hi Edward, some random remarks here for this interesting thread. First another question, though: could you explain what making sentinels invisible in a file offers more than using @shadow? Is it a matter of using just 1 file instead of multiple ones?
I don't know about the current state in Mac OS, but in the nineties files on apples always(?) had an accompanying 'resource' file with them, that contained icons and maybe other stuff I don't remember. Sentinels might be put into such a resource file; if you use a binary format for that, most version control software neglect them when diff'ing, don't they? I don't know how Apple handled various versions of resource files. Another thing to look at: some vim files have a first line or last line (or even a few) that contain setting for that particular file. They're called "modelines". Maybe sentinels could all be moved out of the way towards the end of the file? It seems though that modelines can only contain :set keywords to prevent malicious code be executed. Cheers, Roger On May 9, 3:13 pm, TL <[email protected]> wrote: > Many editors provide the ability to fold lines; in effect, hiding > lines when editing the file. I have set up my Vim editor to fold > sentinels into a single line that is displayed as a series of > hyphens. Here are the commands to configure this in the _vimrc file: > > "FOLDS - Setup folds to hide Leo's sentinels > "Specify expression based folds > set foldmethod=expr > "Specify expression to use to denote a sentinel line (2nd char in line > a '@') > set foldexpr=getline(v:lnum)[1]==\"@\" > "Specify that all consecutive sentinels are folded into single line > set foldminlines=1 > "Show a row of hyphens when folded > set foldtext=v:folddashes > > Regards, > TL > > -- > You received this message because you are subscribed to the Google Groups > "leo-editor" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/leo-editor?hl=en. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
