From a0a546fadf5d26580eafc15c84c267eb6dab8bc8 Mon Sep 17 00:00:00 2001 From: LFDM <1986gh@gmail.com> Date: Wed, 5 Feb 2014 20:21:55 +0100 Subject: [PATCH] Adds missing bd-f plugs --- doc/easymotion.txt | 12 +++++++++--- plugin/EasyMotion.vim | 6 ++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/doc/easymotion.txt b/doc/easymotion.txt index e1c0a3c..6d70078 100644 --- a/doc/easymotion.txt +++ b/doc/easymotion.txt @@ -139,7 +139,7 @@ EasyMotion table *easymotion-plug-table* More Mapping Table | (No assignment by default) ----------------------------------|--------------------------------- - ((easymotion-bd-f)) | See |(easymotion-s)| + (easymotion-bd-f) | See |(easymotion-s)| (easymotion-bd-t) | See |(easymotion-bd-t)| (easymotion-bd-w) | See |(easymotion-bd-w)| (easymotion-bd-W) | See |(easymotion-bd-W)| @@ -159,6 +159,7 @@ EasyMotion table *easymotion-plug-table* (easymotion-sl) | See |(easymotion-sl)| (easymotion-fl) | See |(easymotion-fl)| (easymotion-Fl) | See |(easymotion-Fl)| + (easymotion-bd-fl) | See |(easymotion-sl)| (easymotion-tl) | See |(easymotion-tl)| (easymotion-Tl) | See |(easymotion-Tl)| (easymotion-bd-tl) | See |(easymotion-bd-tl)| @@ -177,6 +178,7 @@ EasyMotion table *easymotion-plug-table* (easymotion-s2) | See |(easymotion-s2)| (easymotion-f2) | See |(easymotion-f2)| (easymotion-F2) | See |(easymotion-F2)| + (easymotion-bd-f2) | See |(easymotion-s2)| (easymotion-t2) | See |(easymotion-t2)| (easymotion-T2) | See |(easymotion-T2)| (easymotion-bd-t2) | See |(easymotion-bd-t2)| @@ -190,6 +192,7 @@ EasyMotion table *easymotion-plug-table* (easymotion-sn) | See |(easymotion-sn)| (easymotion-fn) | See |(easymotion-fn)| (easymotion-Fn) | See |(easymotion-Fn)| + (easymotion-bd-fn) | See |(easymotion-sn)| (easymotion-tn) | See |(easymotion-tn)| (easymotion-Tn) | See |(easymotion-Tn)| (easymotion-bd-tn) | See |(easymotion-bd-tn)| @@ -197,8 +200,10 @@ EasyMotion table *easymotion-plug-table* (easymotion-sln) | See |(easymotion-sln)| (easymotion-fln) | See |(easymotion-fln)| (easymotion-Fln) | See |(easymotion-Fln)| + (easymotion-bd-fln) | See |(easymotion-sln)| (easymotion-tln) | See |(easymotion-tln)| (easymotion-Tln) | See |(easymotion-Tln)| + (easymotion-bd-tln) | See |(easymotion-bd-tln)| ------------------------------------------------------------------------------ @@ -210,8 +215,8 @@ Bidirection ~ Note: bd is short for bidirectional -(easymotion-s) *(easymotion-s)* - *(easymotion-bd-f)* (doesn't exist) +(easymotion-s) *(easymotion-s)* + *(easymotion-bd-f)* Find {char} to bidirection(forward and backward at the same time.) See |f| & |F|. @@ -359,6 +364,7 @@ Within line motion ~ *easymotion-within-line* (easymotion-sl) *(easymotion-sl)* + *(easymotion-bd-fl)* This function is same as |(easymotion-s)|, except range is within current cursor line. diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index 601f748..4d50686 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -70,12 +70,14 @@ call s:find_motion_map_helper({ \ 'f' : {'fnc': 'S' , 'cnt': 1, 'direction': 0}, \ 'F' : {'fnc': 'S' , 'cnt': 1, 'direction': 1}, \ 's' : {'fnc': 'S' , 'cnt': 1, 'direction': 2}, + \ 'bd-f' : {'fnc': 'S' , 'cnt': 1, 'direction': 2}, \ 't' : {'fnc': 'T' , 'cnt': 1, 'direction': 0}, \ 'T' : {'fnc': 'T' , 'cnt': 1, 'direction': 1}, \ 'bd-t' : {'fnc': 'T', 'cnt': 1, 'direction': 2}, \ 'fl' : {'fnc': 'SL', 'cnt': 1, 'direction': 0}, \ 'Fl' : {'fnc': 'SL', 'cnt': 1, 'direction': 1}, \ 'sl' : {'fnc': 'SL', 'cnt': 1, 'direction': 2}, + \ 'bd-fl' : {'fnc': 'SL', 'cnt': 1, 'direction': 2}, \ 'tl' : {'fnc': 'TL', 'cnt': 1, 'direction': 0}, \ 'Tl' : {'fnc': 'TL', 'cnt': 1, 'direction': 1}, \ 'bd-tl' : {'fnc': 'TL', 'cnt': 1, 'direction': 2}, @@ -83,12 +85,14 @@ call s:find_motion_map_helper({ \ 'f2' : {'fnc': 'S' , 'cnt': 2, 'direction': 0}, \ 'F2' : {'fnc': 'S' , 'cnt': 2, 'direction': 1}, \ 's2' : {'fnc': 'S' , 'cnt': 2, 'direction': 2}, + \ 'bd-f2' : {'fnc': 'S' , 'cnt': 2, 'direction': 2}, \ 't2' : {'fnc': 'T' , 'cnt': 2, 'direction': 0}, \ 'T2' : {'fnc': 'T' , 'cnt': 2, 'direction': 1}, \ 'bd-t2' : {'fnc': 'T', 'cnt': 2, 'direction': 2}, \ 'fl2' : {'fnc': 'SL', 'cnt': 2, 'direction': 0}, \ 'Fl2' : {'fnc': 'SL', 'cnt': 2, 'direction': 1}, \ 'sl2' : {'fnc': 'SL', 'cnt': 2, 'direction': 2}, + \ 'bd-fl2' : {'fnc': 'SL', 'cnt': 2, 'direction': 2}, \ 'tl2' : {'fnc': 'TL', 'cnt': 2, 'direction': 0}, \ 'Tl2' : {'fnc': 'TL', 'cnt': 2, 'direction': 1}, \ 'bd-tl2' : {'fnc': 'TL', 'cnt': 2, 'direction': 2}, @@ -96,12 +100,14 @@ call s:find_motion_map_helper({ \ 'fn' : {'fnc': 'S' , 'cnt': -1, 'direction': 0}, \ 'Fn' : {'fnc': 'S' , 'cnt': -1, 'direction': 1}, \ 'sn' : {'fnc': 'S' , 'cnt': -1, 'direction': 2}, + \ 'bd-fn' : {'fnc': 'S' , 'cnt': -1, 'direction': 2}, \ 'tn' : {'fnc': 'T' , 'cnt': -1, 'direction': 0}, \ 'Tn' : {'fnc': 'T' , 'cnt': -1, 'direction': 1}, \ 'bd-tn' : {'fnc': 'T', 'cnt': -1, 'direction': 2}, \ 'fln' : {'fnc': 'SL', 'cnt': -1, 'direction': 0}, \ 'Fln' : {'fnc': 'SL', 'cnt': -1, 'direction': 1}, \ 'sln' : {'fnc': 'SL', 'cnt': -1, 'direction': 2}, + \ 'bd-fln' : {'fnc': 'SL', 'cnt': -1, 'direction': 2}, \ 'tln' : {'fnc': 'TL', 'cnt': -1, 'direction': 0}, \ 'Tln' : {'fnc': 'TL', 'cnt': -1, 'direction': 1}, \ 'bd-tln' : {'fnc': 'TL', 'cnt': -1, 'direction': 2},