Unknown function: xolox#misc#cursorhold#autocmd
While editing a file I periodically get the error:
Error detected while processing CursorHold Auto commands for "*":
E117: Unknown function: xolox#misc#cursorhold#autocmd
And the corresponding insert-mode error:
Error detected while processing CursorHoldI Auto commands for "*":
E117: Unknown function: xolox#misc#cursorhold#autocmd
I searched under
.vim/bundle/vim-notes
for xolox#misc#cursorhold#autocmd() but did not find it. Could this function be missing?
Okay, I found the function in:
vim-misc/autoload/xolox/misc/cursorhold.vim
Not sure now why it is not being found by vim when it tries to execute the autocommand.
Also, I tried the following to disable the periodic error message:
:au! CursorHold
but following up with a
:au CursorHold
showed that the vim-misc autocommand was still in place; it had not been deleted--and I continued to receive the error message.
I removed the autocommand with:
au! PluginXoloxMisc CursorHold
so now I no longer get the error message, but I still don't know what is causing the issue. Also, I get this issue with one particular file. I don't get the issue when editing other files.
Same problem... thanks for the solution @carljparker
I was getting the same error, but I found out it was only happening when I loaded a session that was created prior to when I added vim-notes
This was a session problem for me, too -- recreated the session and the error disappears. It was a pretty old session, not sure what has changed since the last save.