elzr / vim-json

A better JSON for Vim: distinct highlighting of keywords vs values, JSON-specific (non-JS) warnings, quote concealing. Pathogen-friendly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't appear to work with Vundle

beckyconning opened this issue · comments

Hi, I'm a new vim user so sorry if this is a silly mistake. With Vundle installed I added

Plugin 'https://github.com/elzr/vim-json'

to my .vimrc file, wrote the file, reloaded .vimrc with :source, ran :PluginInstall and opened a json file. But I can't see any of the highlighting, warnings or concealing.

Is this something that you could help me fix? Thanks!

Hi @beckyconning. I don't use Vundle myself but it's supposed to be perfectly compatible with Pathogen. I think rather the problem is that you're being overspecific: since the plugin is hosted on github you don't need the full URL. Try the following:

Plugin 'elzr/vim-json'

Hope it works and thanks for trying my plugin!

I'm using vundle it everything seems to work fine here. I had a issue when I first started using it too where I had set json to equal javascript, and it was stopping the plugin from working. You may have something similar setup?

Sorry, no idea then what's wrong. Hope you figure it out and if you do please share your solution here for future users.

@elzr switching to the Plugin 'elzr/vim-json' format fixed the issue : ). thanks!

i have other plugins work with a full github url but this one wanted to work like this. i'll do a pull request for the readme file including these instructions and you can decide if you want to include it.

thanks again!

Glad it's working now! :)

It was working great for me, then I updated and something has broken the loading of the plugin. I last went and looked at the installation of Vundle a few years ago and it seems a lot has changed since then.

FWIW, I had to completely wipe my bundle directory and reload the plugins. Now everything works again.

Yes, I rm -rf ~/.vim/bundle/*, then git cloned Vundle and :PluginInstall and now it works.