vim-taskwarrior
vim-taskwarrior copied to clipboard
Issue selecting tasks
Hi, just installed vim-taskwarrior (via bundle) and ran into this issue:
When selecting a project or a task, vim reports an error:
"taskinfo" [New File]
Error detected while processing function taskwarrior#action#show_info..taskinfo#init:
line 15:
E21: Cannot make changes, 'modifiable' is off
line 17:
E21: Cannot make changes, 'modifiable' is off: 2d
Press ENTER or type command to continue
After that, an empty buffer pops up.
Is this my fault or went something wrong?
Would you please first run :set modifiable then retry it?
Tried with:
:TW -> set modifiable -> Selecting "proj"
and
:TW -> Selecting "proj" -> set modifiable
doesn't work either, results in the same empty buffer.
It seems strange to me, would you please tell me the output of :edit taskinfo | echo &modifiable without running TW?
It seems to open an empty buffer. The commandline says 0.
I think it has sth to do with your vimrc. Whatever, please git pull this plugin. I hope the lastest commit will fix your problem.
It works now but warns because of "Changing readonly file".
Maybe you enable 'readonly' somewhere, or there is already a file named taskinfo without permission to write.
In my .vimrc, these two lines were the culprit:
au BufWinLeave * silent! mkview " make vim save view (state) (cursor, etc)
au BufWinEnter * silent! loadview " make vim load view (state) (cursor, etc)
You can test if you have a similar problem if the error goes away after you deleted all files in your ~/.vim/views directory.