Code Monkey home page Code Monkey logo

Comments (3)

WolfgangMehner avatar WolfgangMehner commented on June 19, 2024

Hello,
I need to clarify a few things before I move on:

So you have the Perl-Plugin installed here:
~/.vim/bundle/perl-support.vim/plugin/perl-support.vim
Which means you also should have template here:
~/.vim/bundle/perl-support.vim/perl-support/templates/...
You however want to use templates outside the directory maintained by bundle in
~/.vim/perl-support/templates/...

Is this correct?

You can use the configuration variable g:Perl_LocalTemplateFile to achieve that.
Or you can use the new features of Perl-Support (not available on vim.org, but in the version on GitHub). Have a look here (section "Installation"):
https://github.com/WolfgangMehner/vim-plugins/blob/master/perl-support/README.md
If you want to configure the stock templates rather than using your completely own library, you can use the new configuration via g:Perl_CustomTemplateFile. This is also available through the template setup wizard (menu entry Perl -> Snippets -> template setup wizard or map \ntw inside a Perl buffer).

Does this help you?

To be completely honest, I hesitate to change the code in the proposed way, because it would mean additional effort to setup the plug-in, namely to copy the templates to an additional location. Or am I missing something?

from vim-plugins.

dracorp avatar dracorp commented on June 19, 2024

Hello
I think it will be correct.

You however want to use templates outside the directory maintained by bundle in

Yes, because I've got redefined several templates and I don't want to overwrite them when upgrading.
But you can propose better location.

You can use the configuration variable g:Perl_LocalTemplateFile to achieve that.

I thought that a variable with s: is different from g: but I was wrong ( I have used in my script variables with the same name but different namespace, eg. l:param and g:param). This may will be enough? I will check it when I come back to home.

from vim-plugins.

dracorp avatar dracorp commented on June 19, 2024

Hi
I think that the solution with the variable will be enough. And I will wait for the new features in coming release.

from vim-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.