From 8e1927a73631d28ba3db4fa5f23b45e7155a43f3 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Fri, 4 Oct 2013 20:32:37 +0900 Subject: [PATCH] updated doc and readme --- README.md | 8 ++++---- doc/easymotion.txt | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 11a8cd3..bcb6378 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Modifications to Lokaltog's EasyMotion 1. Use one - two character key jump. Display two keys if one-character key is not enough, so you can see what two keys to type without waiting after pressing the first key. 2. Added forward-backward search (bidirectional) search. You can jump forward or backward at the same time. `s`. One useful trick is to map `nmap s` and `vmap s` to use space bar instead and save one keystroke! -3. Added SelectLines function which allows you to select any range of lines using two consecutive easymotion calls. Default mappings are `cl, dl, vl, yl`. To yank a single line you can either type the same character(s) twice, or use '.' character. E.g. `vlb.` will select the line with character 'b'. Note: to promote good Vim habits, you should learn standard movement commands like `}}, vi(, va(, %, ][, ]], [(, etc.` before resorting to this function. -4. (Experimental) Added SelectPhrase function which allows you to make selection between any two characters. 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. +3. Added SelectLines function which allows you to select any range of lines using two consecutive easymotion calls. Default mappings are `cl, dl, vl, yl`. To yank a single line you can either type the same character(s) twice, or use '.' character. E.g. `vlb.` will select the line with character 'b'. Note: to promote good Vim habits, you should learn standard movement commands like `}}, vi(, va(, %, ][, ]], [(, etc.` before resorting to this function. +4. (Experimental) Added SelectPhrase function which allows you to make selection between any two characters. 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. ## Animated demonstration @@ -10,11 +10,11 @@ Two-key combo ![two-character key](http://homes.cs.washington.edu/~supasorn/easymotion.gif) -Select lines using `vl` +Select lines using `vl` ![two-character key](http://homes.cs.washington.edu/~supasorn/easymotion2.gif) -Yank lines using `yl`. You can copy lines without moving cursor back and forth between line you want to yank and line you want to paste. +Yank lines using `yl`. You can copy lines without moving cursor back and forth between line you want to yank and line you want to paste. ![two-character key](http://homes.cs.washington.edu/~supasorn/easymotion3.gif) diff --git a/doc/easymotion.txt b/doc/easymotion.txt index 1ae2e08..84a9da8 100644 --- a/doc/easymotion.txt +++ b/doc/easymotion.txt @@ -26,6 +26,9 @@ CONTENTS *easymotion-contents* 4.6 Custom mappings ................ |easymotion-custom-mappings| 4.6.1 Leader key ............... |easymotion-leader-key| 4.6.2 Custom keys .............. |easymotion-custom-keys| + 4.7 Easymotion other functions ..... |easymotion-other-mappings| + 4.7.1 Select Line .............. |easymotion-select-line| + 4.7.2 Select Phrase ............ |easymotion-select-phrase| 5. License ............................ |easymotion-license| 6. Known bugs ......................... |easymotion-known-bugs| 7. Contributing ....................... |easymotion-contributing| @@ -290,6 +293,50 @@ Note: The leader key defined by |EasyMotion_leader_key| is not prepended to your customized mappings! You have to provide full key sequences when setting these options. +------------------------------------------------------------------------------ +4.7 Easymotion other functions *easymotion-other-mappings* + +4.7.1 Select Line *easymotion-select-line* + +Default: Disabled + +SelectLines function which allows you to select any range of lines using two +consecutive easymotion calls. + +Default mappings are `cl, dl, vl, yl`. + +To yank a single line you can either type the same character(s) twice, or use +'.' character. + +E.g. `vlb.` will select the line with character 'b'. + +Note: to promote good Vim habits, you should learn standard movement commands like `}}, vi(, va(, %, ][, ]], [(, etc.` before resorting to this function. + +Set this option to 1 if you want to enable this functions. + +Example: > + + let g:EasyMotion_special_select_line = 1 + +Default: 0 + +4.7.2 Select Phrase *easymotion-select-phrase* + +(Experimental) SelectPhrase function which allows you to make selection +between any two characters. +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 + ============================================================================== 5. License *easymotion-license*