vim-notes icon indicating copy to clipboard operation
vim-notes copied to clipboard

Unknown function: xolox#misc#cursorhold#autocmd

Open carljparker opened this issue 11 years ago • 5 comments

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?

carljparker avatar Aug 19 '14 23:08 carljparker

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.

carljparker avatar Aug 19 '14 23:08 carljparker

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.

carljparker avatar Aug 19 '14 23:08 carljparker

Same problem... thanks for the solution @carljparker

colemand77 avatar Aug 25 '15 21:08 colemand77

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

lebster avatar May 03 '16 20:05 lebster

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.

samson212 avatar Oct 01 '16 18:10 samson212