Closed barlik closed 7 years ago
Thanks @barlik. This seems like a harmless enough change, so I am happy to merge it, but I'd like to understand the problem that it fixes. I know from the help the difference between the two bindings:
CTRL-O execute one command, return to Insert mode *i_CTRL-O*
CTRL-\ CTRL-O like CTRL-O but don't move the cursor *i_CTRL-\_CTRL-O*
but I'd like to know how the problem you were seeing manifests in practice. How would I repro it?
In order to test the behaviour, you need to have omnifunc defined. There are a couple of filetype plugins provided by vim that use omnifunc, for example you can pick html.
Steps to replicate:
vim file.html
set omnifunc?
<ab
and then <c-x><c-o>
to list possible completions that begins with <ab
doautocmd <nomodeline> FocusLost %
Excellent. Thanks for the clarification!
Merged this onto the next
branch. Thanks!
<c-o>
doesn't escape insert mode when used with omnifunc completion. Instead, use<c-\><c-o>
to switch to normal mode. Edit: fix wrong escaping