Per-directory settings
Thorsten Haude
yoo at vranx.de
Tue Aug 29 21:39:22 CEST 2006
Hi,
* wwp wrote (2006-08-29 21:26):
>Q: and what about checking filename + '/../.neditrc' for the vim modelines
>instead of filename itself (rude way to do dirname(filename)+'/.neditrc'?
>Wouldn't this (roughly, but you get the idea) allow to use per-directory
>modelines instead of per-files?
The file open hook will always be called for the just opened file.
But you could probably do something like this in the hook:
load_macro_file($file_path "/.neditrc")
Modelines are in the file in question. I don't think it would make
sense to change their specification unless you can convince the Vim
guys to change theirs.
>Also, I tried to apply enhanced.2005-11-24.1.diff.gz to current CVS sources,
>but many hunks fails.
This patch is pretty old, use the latest. (Which is the only one with
the hook anyway.)
Thorsten Lauryn Hill: MTV Unplugged No. 2.0
--
Guns don't protect freedom, people protect freedom.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.nedit.org/pipermail/discuss/attachments/20060829/6a7726aa/attachment.bin
More information about the Discuss
mailing list