-
Notifications
You must be signed in to change notification settings - Fork 111
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
How to install #52
Comments
Just copy everything under ~/.vim |
Are you saying this:
Now just use |
~$ mkdir -p ~/.vim/autoload ~/.vim/bundle; ~$ sudo gedit ~/.vimrc " contents of minimal .vimrc ~$ cd ~/.vim/bundle |
@karambita Thanks. Would be great if added to the README. 👍 |
Added link to here in the README for the manual install instructions. Thanks @karambita! :) |
Looking through the README.md, I didn't see the link. It in any case should be in a much more prominent spot--like right at the first. As is, the README is nice advertising, but it's very mysterious as to how to actually get the product. |
This is the first time in the almost 3 years that this script has been online that this issue has come up. Mysteriousness is not at all deliberate, Pathogen is an inmensely popular installation method. ;) The link back to here was added in the 3rd paragraph in the README: "(Or install it manually.)" |
Note that to get to the link for "manual install" instructions in the README, the user has already read past the Pathogen option. By clicking manual install link, they're expressing a clear request for manual installation instructions. SO, is @karambita's post the "manual install" method? ...As for folks never mentioning the problem before now, there was no issue posted - so nothing to point at and question. It's human nature that when people are alone with a problem, sometimes they may feel like giving up rather than persisting. |
Based on the endorsement of Pathogen (and not having any way to install vim-json without it) I went ahead with Pathogen. Eventually I got Pathogen working, and vim-json after that was a piece of cake. My comment to newbies: IGNORE all Pathogen instructions you find in Google results or at vim-scripts site, unless it matches what you see in the Pathogen README. I think some blog posts are out of date (they instruct you to to 'call' pathogen functions in your .vimrc which will fail). The README for the current release of Pathogen is is clear what you need to do; it's just 3 lines in your .vimrc. Then use git to grab the code (or unzip the download) in your bundle dir. |
small typo in the git clone there should be https://github.com/elzr/vim-json.git |
if I simply copy this and obviously, i've already tested and it did not :) that's why i'm throwing it here to know if i it should work and i screwed something somewhere, or to know if i am missing something else and it was supposed not to work... |
@gcbw |
The pathogen documentation notes its own demise - Vim 8 includes native support for package management. See https://shapeshed.com/vim-packages/. And thanks for creating vim-json - it's exactly what we need. |
Issues are not really documentation. It would be nice to have proper instructions in the README. Just because only one person has spoken up about the problem it doesn't mean they're the only person who has the problem. |
Okay, I'd agree that this was a little discombobulated. Manual installation instructions (20220121)This is one version that works.
For 4. and 5., if you already had a If you see errors like the below, you likely have completed step 4. but haven't completed step 5. BONUS POINTS:In the interest of brevity, quotes in your JSON for key names and string values are removed ("concealed") until you put your cursor on a row of json. That makes it very difficult to, eg, distinguish when a numeric value is an number or a string.
(One of those is a string.) To remedy this, add the following line to your
This requires VIm 7.3+, apparently. NOTE: If you need help finding your Now you will see the "full" text, but still with better coloring than the default:
Fin PS: Yes, karambita's instructions, though they might appear to be manual instructions, use Pathogen (grabbing it with |
I'm using vim for decades (but with minimal customization) and now trying out neovim, so I want it for both for now. I have copied json.vim now to these folders: /usr/share/vim/vim91/syntax/ Still getting wall of white text. What am I doing wrong? I am making many small quick changes to sway and waybar config and it's insane to be running vscodium for this. |
Any news on this subject? |
This looks like exactly what I want--if only I didn't have to scrape the web to figure out how to install it.
The text was updated successfully, but these errors were encountered: