Comments (6)
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.
Haha, that's crazy. I didn't know. I'll take a look :)
from vim-plug.
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.
Agreed. Will do. Thanks!
from vim-plug.
No, thank you! 👍
from vim-plug.
@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)
- Running multiple commands in after update hook HOT 2
- Add a command to return vim-plug version HOT 1
- Make automatic installation script in wiki tips compatible with Neovim HOT 8
- I think vim-plug is a very excellent Vim plug-in management tool.The codigger project has many plug-ins that extend Vim.
- Mistyping a plugin name gives a cryptic error HOT 2
- plug.vim and init.lua loading issue? HOT 1
- fugitive compatibility for viewing commits in PlugDiff HOT 2
- Allow pull with --force HOT 5
- E492 Not and Editor command on Windows HOT 2
- Failed to compare with the origin when PlugClean. HOT 7
- How do I use VIM-PLUG? Where do I put it? (I'm on Windows 10 and my main VIM folder is at C:/Program Files/Vim and I use Ubuntu to use Linux on Windows Terminal) HOT 2
- g:plug_timeout is not respected for SSL connection timeout HOT 6
- You should follow the instructions in https://github.com/junegunn/vim-plug?tab=readme-ov-file#installation
- My plugin don't work until I run PlugUpdate or PlugInstall. HOT 9
- [Fixed] Error 185 Can not Find color scheme when I use vimplug for install colorschemeS and set it in vimrc HOT 2
- There is no indication in docs or error messages that Git not installed is causing error "PlugInstall is not an editor command" HOT 1
- Implement Efficient Lockfile for Better Version Control and Faster Startup HOT 1
- Why the PlugInstall in neovim says no plugins
- `:PlugUpdate`/`:PlugInstall` freezes NeoVim HOT 5
- How to fetch specific revision by using vim-plug HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-plug.