diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 9c30817..c169153 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -119,6 +119,10 @@ function! EasyMotion#JK(visualmode, direction) " {{{ call s:EasyMotion('^.\{,' . prev_column . '}\zs\(.\|$\)', a:direction, a:visualmode ? visualmode() : '', '') endif endfunction " }}} +" -- End of Line Motion --------------------------- +function! EasyMotion#Eol(visualmode, direction) " {{{ + call s:EasyMotion('(\w\|\s*\zs\|.\|^)$', a:direction, a:visualmode ? visualmode() : '', '') +endfunction " }}} " -- Search Motion ----------------------- function! EasyMotion#Search(visualmode, direction) " {{{ call s:EasyMotion(@/, a:direction, a:visualmode ? visualmode() : '', '') diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index f3ac6e0..2bb4ad2 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -202,6 +202,15 @@ xnoremap (easymotion-k) :call EasyMotion#JK(1,1) noremap (easymotion-bd-jk) :call EasyMotion#JK(0,2) xnoremap (easymotion-bd-jk) :call EasyMotion#JK(1,2) "}}} +" -- End of Line Motion {{{ +noremap (easymotion-J) :call EasyMotion#Eol(0,0) +xnoremap (easymotion-J) :call EasyMotion#Eol(1,0) +noremap (easymotion-K) :call EasyMotion#Eol(0,1) +xnoremap (easymotion-K) :call EasyMotion#Eol(1,1) +noremap (easymotion-bd-JK) :call EasyMotion#Eol(0,2) +xnoremap (easymotion-bd-JK) :call EasyMotion#Eol(1,2) +"}}} + " -- Search Motion {{{ noremap (easymotion-n) :call EasyMotion#Search(0,0)