Use cpo save

:h use-cpo-save
This commit is contained in:
haya14busa 2013-12-18 21:32:27 +09:00
parent f83bdc1bd5
commit f75689e554

View File

@ -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,13 +113,17 @@
\ , '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>
onoremap <silent><Plug>(easymotion-s) :call EasyMotion#S(0,2)<CR> onoremap <silent><Plug>(easymotion-s) :call EasyMotion#S(0,2)<CR>
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