We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7bce17 + 9c098f8 commit 476ba10Copy full SHA for 476ba10
ftplugin/org.vim
@@ -106,14 +106,16 @@ augroup END
106
" Start orgmode {{{1
107
" Expand our path
108
exec s:py_env
109
-import vim, os, sys
+import glob, vim, os, sys
110
111
for p in vim.eval("&runtimepath").split(','):
112
dname = os.path.join(p, "ftplugin")
113
- if os.path.exists(os.path.join(dname, "orgmode")):
114
- if dname not in sys.path:
115
- sys.path.append(dname)
116
- break
+ matches = glob.glob(dname)
+ for match in matches:
+ if os.path.exists(os.path.join(match, "orgmode")):
+ if match not in sys.path:
117
+ sys.path.append(match)
118
+ break
119
120
from orgmode._vim import ORGMODE, insert_at_cursor, get_user_input, date_to_str
121
ORGMODE.start()
0 commit comments