mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
30 lines
979 B
VimL
30 lines
979 B
VimL
|
"=============================================================================
|
||
|
" FILE: plugin/incsearch/easymotion.vim
|
||
|
" AUTHOR: haya14busa
|
||
|
" License: MIT license
|
||
|
"=============================================================================
|
||
|
scriptencoding utf-8
|
||
|
if expand('%:p') ==# expand('<sfile>:p')
|
||
|
unlet! g:loaded_incsearch_easymotion
|
||
|
endif
|
||
|
if exists('g:loaded_incsearch_easymotion')
|
||
|
finish
|
||
|
endif
|
||
|
let g:loaded_incsearch_easymotion = 1
|
||
|
let s:save_cpo = &cpo
|
||
|
set cpo&vim
|
||
|
|
||
|
function! s:config(...) abort
|
||
|
return incsearch#config#easymotion#make(get(a:, 1, {}))
|
||
|
endfunction
|
||
|
|
||
|
noremap <silent><expr> <Plug>(incsearch-easymotion-/) incsearch#go(<SID>config())
|
||
|
noremap <silent><expr> <Plug>(incsearch-easymotion-?) incsearch#go(<SID>config({'command': '?'}))
|
||
|
noremap <silent><expr> <Plug>(incsearch-easymotion-stay) incsearch#go(<SID>config({'is_stay': 1}))
|
||
|
|
||
|
|
||
|
let &cpo = s:save_cpo
|
||
|
unlet s:save_cpo
|
||
|
" __END__
|
||
|
" vim: expandtab softtabstop=2 shiftwidth=2 foldmethod=marker
|