You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use incsearch with easymotion but I am getting an error:Unknown function:EasyMotion#go when I try and search for something using /.
My vimrc has the following settings:
" nnoremap / <Plug>(easymotion-sn)
onoremap / <Plug>(easymotion-tn)
nmap s <Plug>(easymotion-bd-f2)
xmap s <Plug>(easymotion-bd-f2)
omap z <Plug>(easymotion-bd-t2)
nmap t <Plug>(easymotion-bd-t2)
map <Leader><Leader>l <Plug>(easymotion-lineforward)
map <Leader><Leader>j <Plug>(easymotion-j)
map <Leader><Leader>k <Plug>(easymotion-k)
map <Leader><Leader>h <Plug>(easymotion-linebackward)
" These `n` & `N` mappings are options. You do not have to map `n` & `N` to EasyMotion.
" Without these mappings, `n` & `N` works fine. (These mappings just provide
" different highlight method and have some other features )
map n <Plug>(easymotion-next)
map N <Plug>(easymotion-prev)
let g:EasyMotion_smartcase = 1
let g:EasyMotion_startofline = 0 " keep cursor column when JK motion
let g:EasyMotion_use_upper = 1
let g:EasyMotion_keys = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ;'
" You can use other keymappings like <C-l> instead of <CR> if you want to
" use these mappings as default search and somtimes want to move cursor with
" EasyMotion.
function! s:incsearch_config(...) abort
return incsearch#util#deepextend(deepcopy({
\ 'modules': [incsearch#config#easymotion#module({'overwin': 1})],
\ 'keymap': {
\ "\<CR>": '<Over>(easymotion)'
\ },
\ 'is_expr': 0
\ }), get(a:, 1, {}))
endfunction
noremap <silent><expr> / incsearch#go(<SID>incsearch_config())
noremap <silent><expr> ? incsearch#go(<SID>incsearch_config({'command': '?'}))
noremap <silent><expr> g/ incsearch#go(<SID>incsearch_config({'is_stay': 1}))
let g:incsearch#magic = '\v' " very magic
Thanks for your help.
The text was updated successfully, but these errors were encountered:
I am trying to use incsearch with easymotion but I am getting an error:
Unknown function:EasyMotion#go
when I try and search for something using/
.My vimrc has the following settings:
Thanks for your help.
The text was updated successfully, but these errors were encountered: