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.1k stars 266 forks source link

Unable to get vim-orgmode to work on Ubuntu 18.04 (ReadTodoKeywords) #323

Open malteseunderdog opened 5 years ago

malteseunderdog commented 5 years ago

I've read about this problem in other places, but none of the solutions offered fixed it for me.

When I try vim test.org I get:

"test.org" [New File]
Error detected while processing /home/myuser/.vim/vundle_plugins/vim-orgmode/syntax/org.vim:
line  227:
E117: Unknown function: <SNR>34_ReadTodoKeywords
Press ENTER or type command to continue

The beginning of my .vimrc looks like:

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim

call vundle#begin('/home/myuser/.vim/vundle_plugins')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'jceb/vim-orgmode'
Plugin 'tpope/vim-speeddating'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

[...snipped...]

Some more info I saw offered in other issue posts:

:echo has('python3')
1
:echo has('python')
0
:echo v:version
800
steshaw commented 4 years ago

I have a remote machine on Ubuntu 18.04 on which I use vim-orgmode daily. I use Plug rather than Vundle. I do have Vim 8.1.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic

I've tested a "minimal" ~/.vimrc.

  1. cd ~
  2. mv .vimrc .vimrc.bup
  3. curl -sSO https://gist.githubusercontent.com/steshaw/7efb3048a560ffd87843219d164d3b5a/raw/0a7523097f2c166af1bd76e0806664cdbc810cdf/.vimrc
  4. vim test.org # Plug should be installed + orgmode (and molokai theme).
  5. In vim type ":q". This gets you out of the install split pane.
  6. In vim type ":e:. This reloads test.org and you get the code folding.
  7. Celebrate 🎉 .

Also works on Ubuntu 19.04 and macOS 10.14.5. Let me know if you have any trouble.