Ciao Yakov,
> I have this in my .vimrc:
>
> au BufRead,BufNewFile * let x=expand('%:p:h')."/.lvimrc" | if
> filereadable(x) | exe "source ".x | endif
> let x=expand('%:p:h')."/.lvimrc" | if filereadable(x) | exe "source
> ".x | endif
>
> Then I put directory-specififc settings into file .lvimrc in that
> directory.
Thanks, it almost worket off-the-shelf.
I simply had to escape spaces in filenames. Where you write
exe "source" . x
it should be
exe "source" . substitute(x, ' ', '\\ ', 'g')
Thanks a lot, it's exactly what I was looking for.
Regards,
--
[ Andrea Spadaccini - a.k.a. Lupino - from Catania - ICQ #: 91528290 ]
[ GPG ID: 5D41ABF0 - key on keyservers - Gentoo GNU / Linux - 2.6.16 ]
[ Linux Registered User 313388 - @: a.spadaccini(at)catania.linux.it ]
signature.asc
Description: PGP signature
