Skip to content
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

Cannot install into Vim 9 on Mac OS using built-in plugin manager #386

Open
dmitry-tomp opened this issue May 10, 2023 · 2 comments
Open

Comments

@dmitry-tomp
Copy link

dmitry-tomp commented May 10, 2023

I have tried to follow instructions in orgguide.txt to install the plugin to Vim 9 on my Mac. Particularly I did this:

  1. Run these commands in shell
    mkdir -p ~/.vim/pack/git-plugins/start
    cd ~/.vim/pack/git-plugins/start
    git clone https://github.com/jceb/vim-orgmode
  1. Added this content to a (newly created) ~/.vimrc:
    packloadall
    silent! helptags ALL

Then I created a dummy.org file and put the following content

* Task 1
** Task 2

It showed me the file but I could not use any org-mode functionality, neither was any syntax highlighting enabled.
I suspect that the reason is that packpath value on Mac's vim is different from that on popular Linux distros.
Anyway now I have to figure out how Vim scans paths to load packages based on packpath, just to start using orgmode.

Did anyone encounter a similar problem and how did you solve it?

P.S. My packpath value on startup is ~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim90,/usr/share/vim/vimfiles/after,~/.vim/after

@dmitry-tomp
Copy link
Author

Ok I have solved the problem for myself by using pathogen. Anyway the documented steps are clearly not working on some problems, so documentation can be improved there.

@danielcft
Copy link

I had the same issue.
Seems like the plugin is not loaded unless we explicitly tell vim where to look for.
I added this to my vimrc
set runtimepath+=~/.vim/pack/git-plugins/start/vim-orgmode/

I agree that the documentation should be fixed (or the plugin should just work according to the documentation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants