diff --git a/autoload/EasyMotion/init.vim b/autoload/EasyMotion/init.vim index 0a1bbe6..66513b3 100644 --- a/autoload/EasyMotion/init.vim +++ b/autoload/EasyMotion/init.vim @@ -65,9 +65,9 @@ function! EasyMotion#init#InitSpecialMappings(motions, do_mapping) "{{{ silent exec 'xmap ' . \ '(easymotion-prefix)' . motion . ' (easymotion-special-' . motion . ')' silent exec 'nmap ' . - \ 'd(easymotion-prefix)' . motion . ' d(easymotion-special-' . motion . ')' + \ 'd(easymotion-prefix)' . motion . ' (easymotion-special-' . motion . 'd)' silent exec 'nmap ' . - \ 'y(easymotion-prefix)' . motion . ' y(easymotion-special-' . motion . ')' + \ 'y(easymotion-prefix)' . motion . ' (easymotion-special-' . motion . 'y)' endif "}}} endfor endfunction "}}} diff --git a/doc/easymotion.txt b/doc/easymotion.txt index 9c96a0a..0ea4629 100644 --- a/doc/easymotion.txt +++ b/doc/easymotion.txt @@ -1,4 +1,4 @@ -*easymotion.txt* Version 2.0 Last change:10 Jan 2014. +*easymotion.txt* Version 2.0 Last change:14 Jan 2014. ______ __ ___ __ _ @@ -634,6 +634,7 @@ All custom mappings follow the same format: > < Example: > + map s (easymotion-s) map _f (easymotion-f) map (easymotion-T) < @@ -669,10 +670,10 @@ Default: 0 or map it by yourself(Recommend) > - omap L (easymotion-special-l) - xmap L (easymotion-special-l) - nmap dL d(easymotion-special-l) - nmap yL y(easymotion-special-l) + omap L (easymotion-special-l) + xmap L (easymotion-special-l) + nmap dL (easymotion-special-ld) + nmap pL (easymotion-special-ly) < Note: special line function when d & y is a little bit different. So you should map them individually, don't define omap only. @@ -687,14 +688,6 @@ Default mapping are `cp, dp, vp, yp`. Example usage: type `vp` then press two input characters. Now the two input characters will be highlight on the same screen, and you can then type two combos to make selection. -Set this option to 1 if you want to enable this functions. - -Example: > - - let g:EasyMotion_special_select_phrase = 1 - -Default: 0 - Set this option to 1 if you want to automatically map this function Example: > @@ -705,10 +698,11 @@ Default: 0 or map it by yourself(Recommend) > - omap P (easymotion-special-p) - xmap P (easymotion-special-p) - nmap dP d(easymotion-special-p) - nmap yP y(easymotion-special-p) + omap P (easymotion-special-p) + xmap P (easymotion-special-p) + nmap dP (easymotion-special-pd) + nmap yP (easymotion-special-py) + < Note: special phrase function when d & y is a little bit different. So you should map them individually, don't define omap only. diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index 47290a5..71053ed 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -258,13 +258,14 @@ xnoremap (easymotion-lineanywhere) " -- Special Motion {{{ onoremap (easymotion-special-l) :call EasyMotion#SelectLines() xnoremap (easymotion-special-l) :call EasyMotion#SelectLines() -nnoremap y(easymotion-special-l) :call EasyMotion#SelectLinesYank() -nnoremap d(easymotion-special-l) :call EasyMotion#SelectLinesDelete() onoremap (easymotion-special-p) :call EasyMotion#SelectPhrase() xnoremap (easymotion-special-p) :call EasyMotion#SelectPhrase() -nnoremap y(easymotion-special-p) :call EasyMotion#SelectPhraseYank() -nnoremap d(easymotion-special-p) :call EasyMotion#SelectPhraseDelete() + +nnoremap (easymotion-special-ly) :call EasyMotion#SelectLinesYank() +nnoremap (easymotion-special-ld) :call EasyMotion#SelectLinesDelete() +nnoremap (easymotion-special-py) :call EasyMotion#SelectPhraseYank() +nnoremap (easymotion-special-pd) :call EasyMotion#SelectPhraseDelete() "}}} " }}} @@ -309,7 +310,6 @@ if g:EasyMotion_do_mapping == 1 || g:EasyMotion_do_special_mapping == 1 \ , 'p' : { 'name': 'SelectPhrase'} \ }, g:EasyMotion_do_special_mapping) " }}} - endif "}}} " == Restore 'cpoptions' {{{