Show perl sub name in status line

32 views
Skip to first unread message

Егор

unread,
Jun 18, 2013, 9:54:59 AM6/18/13
to v...@vim.org
Hello.
So, to do this I try to use this how to http://blogs.perl.org/users/ovid/2011/01/show-perl-subname-in-vim-statusline.html
But because I using gVim on Windows, I can't set perl interface to gVim. I want to do this on vimscript.  So my questions are:
Is it possible to use ActiveState perl like perl interface on gVim on windows?
Is it possible to write the same script as in howto above in vimscript?
Thanks a lot.

Ben Fritz

unread,
Jun 18, 2013, 10:46:37 AM6/18/13
to vim...@googlegroups.com, v...@vim.org
You don't "set perl interface", you compile Vim with Perl support, using a specific Perl version.

I have not compiled Vim with Perl support before, but I imagine it is similar to compiling with Python support, which is certainly possible on Windows:

http://vim.wikia.com/wiki/Build_Python-enabled_Vim_on_Windows_with_MinGW

I assume ActivePerl will work with Vim, if not Strawberry Perl should. Like I said, I've never actually tried it.

If your Vim is already compiled with Perl support (see the output of the :version command), then you need to make sure the same version of Perl is installed that Vim was compiled with, and that it is accessible on your system path.

Nikolay Pavlov

unread,
Jun 18, 2013, 1:37:59 PM6/18/13
to vim...@googlegroups.com, v...@vim.org


On Jun 18, 2013 6:46 PM, "Ben Fritz" <fritzo...@gmail.com> wrote:
>
> On Tuesday, June 18, 2013 8:54:59 AM UTC-5, Егор wrote:
> > Hello.
> >
> >     So, to do this I try to use this how to http://blogs.perl.org/users/ovid/2011/01/show-perl-subname-in-vim-statusline.html
> >
> >     But because I using gVim on Windows, I can't set perl interface to
> >     gVim. I want to do this on vimscript.  So my questions are:
> >
> >     Is it possible to use ActiveState perl like perl interface on gVim
> >     on windows?
> >
> >     Is it possible to write the same script as in howto above in
> >     vimscript?
> >
> >     Thanks a lot.
>
> You don't "set perl interface", you compile Vim with Perl support, using a specific Perl version.
>
> I have not compiled Vim with Perl support before, but I imagine it is similar to compiling with Python support, which is certainly possible on Windows:
>
> http://vim.wikia.com/wiki/Build_Python-enabled_Vim_on_Windows_with_MinGW
>
> I assume ActivePerl will work with Vim, if not Strawberry Perl should. Like I said, I've never actually tried it.

I have an experience of cross-compiling (i686 mingw cross-compiler on a Gentoo amd64 host) vim with strawberry perl. It works fine under wine.

> If your Vim is already compiled with Perl support (see the output of the :version command), then you need to make sure the same version of Perl is installed that Vim was compiled with, and that it is accessible on your system path.
>

> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages