Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mappings with <expr> and <SID> cause 'E117 Unkown function' error #51

Closed
kealthou opened this issue Dec 21, 2014 · 3 comments
Closed

mappings with <expr> and <SID> cause 'E117 Unkown function' error #51

kealthou opened this issue Dec 21, 2014 · 3 comments
Labels

Comments

@kealthou
Copy link

vim-easymotion and vim-over, which provide the similar function and use vital's over module don't have the problem, or more like the mappings are ignored in those <Plug>(easymotion-sn) and OverCommandLine respectively, for good or bad.

set runtimepath+=~/.vim/bundle/incsearch.vim
map / <Plug>(incsearch-forward)
cnoremap <expr> <C-h> <SID>a()
cnoremap <expr> s <SID>a()
function! s:a()
endfunction

FYI, vim-smartinput and lexima.vim use this kind of mapping.

@haya14busa
Copy link
Owner

Thanks for the report @kealthou , I'll fix it.

NOTE

  • vim-easymotion and vim-over just didn't update vital-over module and use a new feature.
  • getcmdline() , getcmdpos(), etc.. doesn't work in vital-over, so I guess smartinput & lexima doesn't work irrelevant with this issue.
  • You can overwrite mappings with :IncsearchNoreMap, so please use it for such mappings or turn g:incsearch#vim_cmdline_keymap off.
let g:incsearch#vim_cmdline_keymap = 0

@haya14busa haya14busa added the bug label Jan 3, 2015
@haya14busa
Copy link
Owner

I fixed this issue in dev branch. so please wait for a while.

@haya14busa
Copy link
Owner

Merged it into master 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants