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

TODO fast access prompt throws error #274

Closed Liriel closed 3 years ago

Liriel commented 7 years ago

with vim 8.0 on windows x64 using python 2.7 when pressing <localleader>d I get:

2 more lines; before #95 1 seconds ago

Error detected while processing : Traceback (most recent call last): File "", line 1, in File "C:\Users\jim/vimfiles\ftplugin\orgmode_vim.py", line 37, in r res = f(*args, kwargs) File "C:\Users\jim/vimfiles\ftplugin\orgmode_vim.py", line 57, in r res = f(*args, *kwargs) File "C:\Users\jim/vimfiles\ftplugin\orgmode_vim.py", line 82, in r res = f(args, kwargs) File "C:\Users\jim/vimfiles\ftplugin\orgmode\plugins\Todo.py", line 185, in toggle_todo_state u'%s sbuffer org:todo/%d' % (prompt_pos, d.bufnr, )).encode(u'utf-8')) vim.error: Vim(python):Traceback (most recent call last):

my g:org_todo_keywords var is set to: ['TODO(t)', '|', 'DONE(d)']

Liriel commented 7 years ago

on windows buffer names are separated by a backslash - fixed by looking for the last number in the buffer name instead of splitting