jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.13k stars 268 forks source link

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

Open dmitry-tomp opened 1 year ago

dmitry-tomp commented 1 year ago

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
  2. 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 commented 1 year ago

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 commented 2 months ago

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)