Giter VIP home page Giter VIP logo

Comments (6)

junegunn avatar junegunn commented on September 18, 2024 2

I just realized that it's the limitation of Vim. I added -bar option to Plug command to allow trailing comment like so:

Plug 'hola/mundo'    " hello world

But this -bar option turned out to have the side effect of interpreting any " as the start of the comment.

    -bar        The command can be followed by a "|" and another command.
            A "|" inside the command argument is not allowed then.
            Also checks for a " to start a comment.

So it sees Plug "troydm/easytree.vim" as Plug " COMMENT and gives the above error. If we really want to allow double-quotes, I could take the whole argument as a single String and manually parse it, but I'm not sure if it's worth it.

from vim-plug.

junegunn avatar junegunn commented on September 18, 2024

Haha, that's crazy. I didn't know. I'll take a look :)

from vim-plug.

RobertAudi avatar RobertAudi commented on September 18, 2024

Yeah, I agree it's probably not worth it, but a warning should absolutely be add to the README and the plugin documentation in my opinion.

from vim-plug.

junegunn avatar junegunn commented on September 18, 2024

Agreed. Will do. Thanks!

from vim-plug.

RobertAudi avatar RobertAudi commented on September 18, 2024

No, thank you! 👍

from vim-plug.

alok avatar alok commented on September 18, 2024

@junegunn It might be worth putting why you need to use single quotes in the README since I've had a lot of people ask me that. Something as simple as "if you use double quotes, vim reads the rest of the command as a comment" would be nice.

from vim-plug.

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.