Re: [cream] modelines
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Ciaran M. <ci...@ci...> - 2007-05-18 08:35:42
|
On Thu, 17 May 2007 20:55:33 +0200 Thomas de Grenier de Latour <deg...@ea...> wrote: > Found a tiny bug there: the script tries to read the last 5 lines of > the buffer using getline("$-5", "$"), which doesn't work because "$-5" > is not correctly interpreted (vim-7.1 here, and line("$-5") =3D=3D > line("$")). Thus only the last line is actually read, and modelines > like this one are not found:=20 Well spotted, thanks. I've done a new release with this fix and a few other things (I handled it slightly differently to avoid parsing lines twice). On Thu, 17 May 2007 20:53:00 -0400 Steve Hall <dig...@da...> wrote: > Ciaran, can I get your permission to include your securemodelines.vim > in Cream? Sure. I've explicitly marked the new version as being redistributable under the same terms as Vim itself. On Fri, 18 May 2007 07:36:42 +0200 Thomas de Grenier de Latour <deg...@ea...> wrote: > Ciaran, would you mind adding something like this to your script?: > fun! Securemodelines_DoModelines() abort > call <SID>DoModelines() > endfun Done. Regards, --=20 Ciaran McCreesh |