Per-directory settings
Thorsten Haude
yoo at vranx.de
Tue Aug 29 19:50:22 CEST 2006
Hi,
* wwp wrote (2006-08-25 16:44):
>In a general manner, I'm looking for a convenient way to use different
>settings (mainly tab or wrap settings) following the source files I'm
>editing. At work we now use 4-space, but for some OS projects it's
>tab-4-space, here it's tab-8-space.. for some files which are not source
>code, I'd like to turn on autowrap, etc.
I have now added a file open hook to my Patch Collection. You can use
the latest version with the macros provided to use Vim modelines. For
example, to set a Perl source file to Tab Spacing 8, Emulated Tab
Spacing 4, you'd need to add a line like this in the first or last 5
lines:
# vim:et sw=4 ts=8
Let me know if you have any problem with
- applying the patch,
- adding the macros to your default set,
- the modelines.
The implementation of the hook is pretty crude, and I will work on it
in the next weeks. I don't expect any change in the user-side
interface though.
I regard my Patch Collection as a development version, so take more
than the usual care with your documents. Save regularly and make
frequent backups. (That said, I use my latest version it for all my
work, and it works at least good enough to make new versions.)
Thorsten Wyclef Jean: Wish You Were Here
--
Wer die Wahrheit nicht weiß, der ist bloß ein Dummkopf. Aber wer
sie weiß und sie eine Lüge nennt, der ist ein Verbrecher!
- Berthold Brecht
-------------- 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/7c4a4c7c/attachment.bin
More information about the Discuss
mailing list