Use cpo save
:h use-cpo-save
This commit is contained in:
parent
f83bdc1bd5
commit
f75689e554
@ -10,6 +10,10 @@
|
|||||||
|
|
||||||
let g:EasyMotion_loaded = 1
|
let g:EasyMotion_loaded = 1
|
||||||
" }}}
|
" }}}
|
||||||
|
" Saving 'cpoptions' {{{
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
" }}}
|
||||||
" Default configuration {{{
|
" Default configuration {{{
|
||||||
" Default options {{{
|
" Default options {{{
|
||||||
call EasyMotion#InitOptions({
|
call EasyMotion#InitOptions({
|
||||||
@ -109,7 +113,6 @@
|
|||||||
\ , 'p' : { 'name': 'SelectPhrase' , 'flag': 'select_phrase' }
|
\ , 'p' : { 'name': 'SelectPhrase' , 'flag': 'select_phrase' }
|
||||||
\ })
|
\ })
|
||||||
" }}}
|
" }}}
|
||||||
"
|
|
||||||
" Prepare keymaps {{{
|
" Prepare keymaps {{{
|
||||||
" S "{{{
|
" S "{{{
|
||||||
nnoremap <silent><Plug>(easymotion-s) :call EasyMotion#S(0,2)<CR>
|
nnoremap <silent><Plug>(easymotion-s) :call EasyMotion#S(0,2)<CR>
|
||||||
@ -117,5 +120,10 @@
|
|||||||
vnoremap <silent><Plug>(easymotion-s) :<C-u>call EasyMotion#S(1,2)<CR>
|
vnoremap <silent><Plug>(easymotion-s) :<C-u>call EasyMotion#S(1,2)<CR>
|
||||||
"}}}
|
"}}}
|
||||||
"}}}
|
"}}}
|
||||||
|
" }}}
|
||||||
|
" Restore 'cpoptions' {{{
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
" }}}
|
||||||
|
|
||||||
" vim: fdm=marker:noet:ts=4:sw=4:sts=4
|
" vim: fdm=marker:noet:ts=4:sw=4:sts=4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user