xolox / vim-notes

Easy note taking in Vim
http://peterodding.com/code/vim/notes/
1.6k stars 110 forks source link

Unknown function: xolox#misc#cursorhold#autocmd #80

Open carljparker opened 10 years ago

carljparker commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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.

colemand77 commented 9 years ago

Same problem... thanks for the solution @carljparker

lebster commented 8 years ago

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

samson212 commented 8 years ago

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.