Re: Vim, Perl and stuff.

2011-02-02 Thread Alan Young
On Wed, Feb 2, 2011 at 07:59, Tony Mechelynck wrote: > See >        :help script-here > about how to make it work. Thank you. I've come up with the following as a way to deal with not having to re-index lines on an un-modified buffer. Is there anything else I can do? I realize this will probab

Re: Vim, Perl and stuff.

2011-02-02 Thread Tony Mechelynck
On 02/02/11 02:01, Alan Young wrote: [...] if has( 'perl' ) perl<< EOP [...] This use of if has() together with a here-document doesn't work because a Vim without Perl can't properly parse the here-document when trying to find the *matching* endif. See :help script-here about how t

Re: Vim, Perl and stuff.

2011-02-01 Thread Alan Young
On Tue, Feb 1, 2011 at 18:34, Marc Weber wrote: > There is also a buffer local scope called b: which you may want to use. That seems to have done the trick for that particular problem. Thank you. -- Alan Young -- You received this message from the "vim_use" maillist. Do not top-post! Type you

Re: Vim, Perl and stuff.

2011-02-01 Thread Marc Weber
Excerpts from Alan Young's message of Wed Feb 02 02:01:01 +0100 2011: > The problem is with the 'did_perl_statusline' if construct. If I have > this in place, then only the first perl file loaded will have the > output appended to the status line. [..] There is also a buffer local scope called b:

Vim, Perl and stuff.

2011-02-01 Thread Alan Young
I have a problem and a couple of optimizations I'd like to get some help with if I could. I have the following in my '.vim/after/ftplugin/perl.vim' file: --8<- if ! exists("g:did_perl_statusline") setlocal statusline+=%(\ %{StatusLineIndex