-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create plugin for vim #38
Comments
I agree... the current installation method for vim is a headache and breaks people's standard vim plugin workflow! |
@mynameisfiber Want to take a stab at fixing this? |
@suchow I may have some time later this week... vim plugins aren't my forte but it'd be worth a crack! |
@lcd047, I've tried using the plugin through Vundle, with neovim like so:
and get this error when running
Did I make a mistake, or is there a bug with the plugin? |
@AlexMooney Please upgrade syntastic to 0f82191 or later and try again. |
I have just found that there is an issue for this! |
@Nitwoe Why, thank you so much for taking an older version of my patch, putting your name on it, and re-distributing it under a different license. That's an inspiration for us all, keep up the good work :) |
@lcd047 I'm sorry for that, all I meant was to extract it and use it in the common workflow with vundle. It didn't work for me out of the box from the proselint's repository so I found this to be a solution. If you want me to nuke the repository or anything - just tell me, I mean no harm and just want to use it within my vim config. |
@Nitwoe The method mentioned by @AlexMooney above works fine with Vundle: Plugin 'amperser/proselint', {'rtp': 'plugins/vim/syntastic_proselint/'} The method mentioned in the readme, to add a link, also works. You don't need to "extract" anything. |
@lcd047 Well that's what I get for not knowing the |
Are we all set here? Can this be closed? |
This worked for me with vim-plug too. Perhaps a line could be added to the README for the vim plugin. |
@smitec There's a lot to explain if you want to get into that kind of details. With Vundle, the effect of the above incantation is that a copy of The equivalent commands for NeoBundle and Plug are NeoBundle 'amperser/proselint', {'rtp': 'plugins/vim/syntastic_proselint/'} and respectively Plug 'amperser/proselint', {'rtp': 'plugins/vim/syntastic_proselint/'} They have the same caveat as Vundle. With Pathogen you need to do something like this: execute pathogen#infect('bundle/{}', '/path/to/proselint/plugins/vim/{}') -- but Pathogen doesn't try to download or update anything. It's still up to you to manage versions and keep them consistent with each other. I have no idea how to achieve the same with VAM. It's likely possible, but I have yet to summon the patience to read enough of VAM's manual and / or sources to figure out how to do that. Finally, with recent versions of Vim you can also manage packages with set runtimepath+=/path/to/proselint/plugins/vim/syntastic_proselint/ Oh, and the explanation has to be concise, so that the user doesn't run screaming before reading it. I'm not arrogant enough to pretend that my English is nearly good enough for that task. I'd just rather hope the potential Vim users would either use the dumb symlink way described in the README, or that they are knowledgeable enough to do the right thing with their favourite package manager. :) |
@lcd047 I agree it is complex to cover all bases, I would say that adding a line with the |
I'm a vim newbie using github.com/amix/vimrc. I have tried to follow readme and can see proselint in :scriptnames but not in :SyntasticCheck. I think I would find a single reproducible full installation example (using whatever plugin manager) in the readme helpful. |
@drcjar You aren't supposed to see proselint in the output of
From the
If your plugin manager is pathogen this is a full installation example, it should just work. Glad I could help. 😄 More realistically: please explain what you did, what did you expect to happen, and what happened instead. What is your OS, what is your setup, what versions of Vim, proselint, and syntastic you have, what kind of files you were trying to check, what is the output of |
Thank-you @lcd047 I'm running ubuntu 14.04. I'm new to Vim. I'm using Awesome version. I cloned proselint into I added
to I opened a markdown file and typed things. I expected that :SyntasticInfo would report proselint being available and that I would be able to use it. Here is the output of my :SyntasticInfo.
|
@drcjar You aren't running any standard package manager, so this is really something you should have asked the author of mv ~/.vim_runtime/sources_non_forked/proselint /some/path
ln -s /some/path/proselint/plugins/vim/syntastic_proselint ~/.vim_runtime/sources_non_forked Basically you need to link |
fwiw, proselint works out of the box with vim. Just set
Then run |
I'm not anti syntastic, sorry if you got that impression! I just don't think it gets in the way of using proselint within vim. You're right about funny file names, so;
tada! Is it a good idea to push features like ignoring certain messages into the plugins? Why not centralize that in proselint itself? |
@chreekat Then I rise you: |
On Fri, Sep 23, 2016 at 02:57:17AM -0700, LCD 047 wrote:
All I meant to imply is that this issue has been open for a year and a I look forward to meeting the person who both uses vim and names files
|
@chreekat Then I rise you: We can stop here. I've been at this a lot longer than you, trying to make it work for syntastic. I eventually switched to My best approximation was this: let &l:mp='proselint ' . escape(fnameescape(expand('%', 1)), '&()') This works on UNIX, but not on Windows. I don't have a solution for Windows. |
The Vim plugin has been merged into syntastic. |
No description provided.
The text was updated successfully, but these errors were encountered: