2014-12-15 22:25:56 -05:00
|
|
|
*easymotion.txt* Version 2.1
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
______ __ ___ __ _
|
|
|
|
/ ____/____ ________ __/ |/ /____ / /_(_)____ ____
|
|
|
|
/ __/ / __ `/ ___/ / / / /|_/ // __ \/ __/ // __ \/ __ \
|
|
|
|
/ /___ / /_/ (__ ) /_/ / / / // /_/ / /_/ // /_/ / / / /
|
|
|
|
/_____/ \__,_/____/\__, /_/ /_/ \____/\__/_/ \____/_/ /_/
|
|
|
|
/____/
|
|
|
|
- Vim motions on speed!
|
|
|
|
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
CONTENTS *easymotion-contents*
|
|
|
|
|
2014-01-30 19:50:15 -05:00
|
|
|
Introduction ....................... |easymotion-introduction|
|
|
|
|
Usage .............................. |easymotion-usage|
|
|
|
|
Default mappings ................ |easymotion-default-mappings|
|
|
|
|
More mappings ................... |easymotion-more-mappings|
|
|
|
|
Requirements ....................... |easymotion-requirements|
|
|
|
|
Configuration ...................... |easymotion-configuration|
|
|
|
|
EasyMotion_keys ................. |EasyMotion_keys|
|
|
|
|
EasyMotion_do_shade ............. |EasyMotion_do_shade|
|
|
|
|
EasyMotion_do_mapping ........... |EasyMotion_do_mapping|
|
|
|
|
EasyMotion_grouping ............. |EasyMotion_grouping|
|
|
|
|
EasyMotion_smartcase ............ |EasyMotion_smartcase|
|
|
|
|
EasyMotion_smartsign ............ |EasyMotion_smartsign|
|
|
|
|
EasyMotion_use_migemo ........... |EasyMotion_use_migemo|
|
|
|
|
EasyMotion_use_upper ........... |EasyMotion_use_upper|
|
|
|
|
EasyMotion_enter_jump_first ..... |EasyMotion_enter_jump_first|
|
|
|
|
EasyMotion_prompt ............... |EasyMotion_prompt|
|
|
|
|
EasyMotion_highlight ............ |EasyMotion_highlight|
|
2014-02-18 03:52:12 -05:00
|
|
|
EasyMotion_add_search_history ... |EasyMotion_add_search_history|
|
|
|
|
EasyMotion_off_screen_search .... |EasyMotion_off_screen_search|
|
|
|
|
EasyMotion_disable_two_key_combo. |EasyMotion_disable_two_key_combo|
|
2014-01-30 19:50:15 -05:00
|
|
|
Custom highlighting ............. |easymotion-custom-hl|
|
|
|
|
Custom mappings ................. |easymotion-custom-mappings|
|
|
|
|
Leader key .................. |easymotion-leader-key|
|
|
|
|
Custom keys ................. |easymotion-custom-keys|
|
|
|
|
License ............................ |easymotion-license|
|
|
|
|
Known bugs ......................... |easymotion-known-bugs|
|
|
|
|
Contributing ....................... |easymotion-contributing|
|
|
|
|
Credits ............................ |easymotion-credits|
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
==============================================================================
|
2014-01-30 19:50:15 -05:00
|
|
|
Introduction *easymotion* *easymotion-introduction*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
EasyMotion provides a much simpler way to use some motions in vim. It takes
|
|
|
|
the <number> out of <number>w or <number>f{char} by highlighting all possible
|
|
|
|
choices and allowing you to press one key to jump directly to the target.
|
|
|
|
|
|
|
|
When one of the available motions is triggered, all visible text preceding or
|
|
|
|
following the cursor is faded, and motion targets are highlighted.
|
|
|
|
|
|
|
|
==============================================================================
|
2014-01-30 19:50:15 -05:00
|
|
|
Usage *easymotion-usage*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
EasyMotion is triggered by one of the provided mappings (see
|
2011-04-01 04:02:10 -04:00
|
|
|
|easymotion-default-mappings| for details).
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
Example: >
|
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
<cursor>Lorem ipsum dolor sit amet.
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-11-07 08:42:45 -05:00
|
|
|
Type <Leader><Leader>w to trigger the word motion |w|. See
|
2011-06-01 04:14:20 -04:00
|
|
|
|easymotion-leader-key| for details about the leader key. When the
|
|
|
|
motion is triggered, the text is updated (no braces are actually added,
|
|
|
|
the text is highlighted in red by default): >
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
<cursor>Lorem {a}psum {b}olor {c}it {d}met.
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-29 09:40:20 -04:00
|
|
|
Press "c" to jump to the beginning of the word "sit": >
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
Lorem ipsum dolor <cursor>sit amet.
|
|
|
|
|
|
|
|
Similarly, if you're looking for an "o", you can use the |f| motion.
|
2011-11-07 08:42:45 -05:00
|
|
|
Type <Leader><Leader>fo, and all "o" characters are highlighted: >
|
2011-03-31 02:23:40 -04:00
|
|
|
|
|
|
|
<cursor>L{a}rem ipsum d{b}l{c}r sit amet.
|
|
|
|
|
|
|
|
Press "b" to jump to the second "o": >
|
|
|
|
|
|
|
|
Lorem ipsum d<cursor>olor sit amet.
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
And that's it!
|
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
Default mappings *easymotion-default-mappings*
|
2011-03-31 02:23:40 -04:00
|
|
|
|
2011-03-31 11:24:55 -04:00
|
|
|
The default configuration defines the following mappings in normal,
|
2013-12-21 09:01:01 -05:00
|
|
|
visual and operator-pending mode if |g:EasyMotion_do_mapping| is on:
|
2011-03-31 02:23:40 -04:00
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
Note: The default leader has been changed to <Leader><Leader> to avoid
|
|
|
|
conflicts with other plugins you may have installed
|
|
|
|
|
|
|
|
Default Mapping | Details
|
2013-10-04 13:34:48 -04:00
|
|
|
---------------------|----------------------------------------------
|
|
|
|
<Leader>f{char} | Find {char} to the right. See |f|.
|
|
|
|
<Leader>F{char} | Find {char} to the left. See |F|.
|
|
|
|
<Leader>t{char} | Till before the {char} to the right. See |t|.
|
|
|
|
<Leader>T{char} | Till after the {char} to the left. See |T|.
|
|
|
|
<Leader>w | Beginning of word forward. See |w|.
|
|
|
|
<Leader>W | Beginning of WORD forward. See |W|.
|
|
|
|
<Leader>b | Beginning of word backward. See |b|.
|
|
|
|
<Leader>B | Beginning of WORD backward. See |B|.
|
|
|
|
<Leader>e | End of word forward. See |e|.
|
|
|
|
<Leader>E | End of WORD forward. See |E|.
|
|
|
|
<Leader>ge | End of word backward. See |ge|.
|
|
|
|
<Leader>gE | End of WORD backward. See |gE|.
|
|
|
|
<Leader>j | Line downward. See |j|.
|
|
|
|
<Leader>k | Line upward. See |k|.
|
|
|
|
<Leader>n | Jump to latest "/" or "?" forward. See |n|.
|
|
|
|
<Leader>N | Jump to latest "/" or "?" backward. See |N|.
|
2013-12-21 09:01:01 -05:00
|
|
|
<Leader>s | Find(Search) {char} forward and backward.
|
|
|
|
| See |f| and |F|.
|
|
|
|
|
|
|
|
See |easymotion-leader-key| and |mapleader| for details about the leader key.
|
|
|
|
See |easymotion-custom-mappings| for customizing the default mappings.
|
|
|
|
|
|
|
|
EasyMotion <Plug> table *easymotion-plug-table*
|
|
|
|
|
|
|
|
<Plug> Mapping Table | Default
|
|
|
|
---------------------|----------------------------------------------
|
|
|
|
<Plug>(easymotion-f) | <Leader>f{char}
|
|
|
|
<Plug>(easymotion-F) | <Leader>F{char}
|
|
|
|
<Plug>(easymotion-t) | <Leader>t{char}
|
|
|
|
<Plug>(easymotion-T) | <Leader>T{char}
|
|
|
|
<Plug>(easymotion-w) | <Leader>w
|
|
|
|
<Plug>(easymotion-W) | <Leader>W
|
|
|
|
<Plug>(easymotion-b) | <Leader>b
|
|
|
|
<Plug>(easymotion-B) | <Leader>B
|
|
|
|
<Plug>(easymotion-e) | <Leader>e
|
|
|
|
<Plug>(easymotion-E) | <Leader>E
|
|
|
|
<Plug>(easymotion-ge)| <Leader>ge
|
|
|
|
<Plug>(easymotion-gE)| <Leader>gE
|
|
|
|
<Plug>(easymotion-j) | <Leader>j
|
|
|
|
<Plug>(easymotion-k) | <Leader>k
|
|
|
|
<Plug>(easymotion-n) | <Leader>n
|
|
|
|
<Plug>(easymotion-N) | <Leader>N
|
|
|
|
<Plug>(easymotion-s) | <Leader>s
|
|
|
|
|
|
|
|
More <Plug> Mapping Table | (No assignment by default)
|
|
|
|
----------------------------------|---------------------------------
|
2014-02-05 14:21:55 -05:00
|
|
|
<Plug>(easymotion-bd-f) | See |<Plug>(easymotion-s)|
|
2014-01-20 21:35:45 -05:00
|
|
|
<Plug>(easymotion-bd-t) | See |<Plug>(easymotion-bd-t)|
|
2013-12-21 09:01:01 -05:00
|
|
|
<Plug>(easymotion-bd-w) | See |<Plug>(easymotion-bd-w)|
|
|
|
|
<Plug>(easymotion-bd-W) | See |<Plug>(easymotion-bd-W)|
|
|
|
|
<Plug>(easymotion-bd-e) | See |<Plug>(easymotion-bd-e)|
|
|
|
|
<Plug>(easymotion-bd-E) | See |<Plug>(easymotion-bd-E)|
|
|
|
|
<Plug>(easymotion-bd-jk) | See |<Plug>(easymotion-bd-jk)|
|
|
|
|
<Plug>(easymotion-bd-n) | See |<Plug>(easymotion-bd-n)|
|
|
|
|
<Plug>(easymotion-jumptoanywhere) | See |<Plug>(easymotion-jumptoanywhere)|
|
2014-01-10 03:03:08 -05:00
|
|
|
<Plug>(easymotion-repeat) | See |<Plug>(easymotion-repeat)|
|
2014-01-16 09:18:56 -05:00
|
|
|
<Plug>(easymotion-next) | See |<Plug>(easymotion-next)|
|
2014-03-29 07:17:11 -04:00
|
|
|
<Plug>(easymotion-prev) | See |<Plug>(easymotion-prev)|
|
2014-01-14 20:46:27 -05:00
|
|
|
<Plug>(easymotion-sol-j) | See |<Plug>(easymotion-sol-j)|
|
2014-02-17 23:54:44 -05:00
|
|
|
<Plug>(easymotion-sol-k) | See |<Plug>(easymotion-sol-k)|
|
2014-01-14 20:46:27 -05:00
|
|
|
<Plug>(easymotion-eol-j) | See |<Plug>(easymotion-eol-j)|
|
2014-02-17 23:54:44 -05:00
|
|
|
<Plug>(easymotion-eol-k) | See |<Plug>(easymotion-eol-k)|
|
|
|
|
<Plug>(easymotion-iskeyword-w) | See |<Plug>(easymotion-iskeyword-w)|
|
|
|
|
<Plug>(easymotion-iskeyword-b) | See |<Plug>(easymotion-iskeyword-b)|
|
|
|
|
<Plug>(easymotion-iskeyword-bd-w) | See |<Plug>(easymotion-iskeyword-bd-w)|
|
|
|
|
<Plug>(easymotion-iskeyword-e) | See |<Plug>(easymotion-iskeyword-e)|
|
|
|
|
<Plug>(easymotion-iskeyword-ge) | See |<Plug>(easymotion-iskeyword-ge)|
|
|
|
|
<Plug>(easymotion-iskeyword-bd-e) | See |<Plug>(easymotion-iskeyword-bd-e)|
|
2014-06-28 04:22:12 -04:00
|
|
|
<Plug>(easymotion-vim-n) | See |<Plug>(easymotion-vim-n)|
|
|
|
|
<Plug>(easymotion-vim-N) | See |<Plug>(easymotion-vim-N)|
|
2014-01-10 03:03:08 -05:00
|
|
|
|
|
2014-01-13 16:18:57 -05:00
|
|
|
Within Line Motion | See |easymotion-within-line|
|
2013-12-22 10:43:27 -05:00
|
|
|
----------------------------------|---------------------------------
|
|
|
|
<Plug>(easymotion-sl) | See |<Plug>(easymotion-sl)|
|
2014-01-10 02:47:35 -05:00
|
|
|
<Plug>(easymotion-fl) | See |<Plug>(easymotion-fl)|
|
|
|
|
<Plug>(easymotion-Fl) | See |<Plug>(easymotion-Fl)|
|
2014-02-05 14:21:55 -05:00
|
|
|
<Plug>(easymotion-bd-fl) | See |<Plug>(easymotion-sl)|
|
2014-01-10 02:47:35 -05:00
|
|
|
<Plug>(easymotion-tl) | See |<Plug>(easymotion-tl)|
|
|
|
|
<Plug>(easymotion-Tl) | See |<Plug>(easymotion-Tl)|
|
2014-01-20 21:35:45 -05:00
|
|
|
<Plug>(easymotion-bd-tl) | See |<Plug>(easymotion-bd-tl)|
|
2013-12-22 10:43:27 -05:00
|
|
|
<Plug>(easymotion-wl) | See |<Plug>(easymotion-wl)|
|
|
|
|
<Plug>(easymotion-bl) | See |<Plug>(easymotion-bl)|
|
|
|
|
<Plug>(easymotion-bd-wl) | See |<Plug>(easymotion-bd-wl)|
|
|
|
|
<Plug>(easymotion-el) | See |<Plug>(easymotion-el)|
|
|
|
|
<Plug>(easymotion-gel) | See |<Plug>(easymotion-gel)|
|
|
|
|
<Plug>(easymotion-bd-el) | See |<Plug>(easymotion-bd-el)|
|
|
|
|
<Plug>(easymotion-lineforward) | See |<Plug>(easymotion-lineforward)|
|
|
|
|
<Plug>(easymotion-linebackward) | See |<Plug>(easymotion-linebackward)|
|
|
|
|
<Plug>(easymotion-lineanywhere) | See |<Plug>(easymotion-lineanywhere)|
|
|
|
|
|
|
2014-01-13 16:18:57 -05:00
|
|
|
Multi Input Find Motion | See |easymotion-multi-input|
|
|
|
|
----------------------------------|---------------------------------
|
2014-01-20 21:36:53 -05:00
|
|
|
<Plug>(easymotion-s2) | See |<Plug>(easymotion-s2)|
|
|
|
|
<Plug>(easymotion-f2) | See |<Plug>(easymotion-f2)|
|
|
|
|
<Plug>(easymotion-F2) | See |<Plug>(easymotion-F2)|
|
2014-02-05 14:21:55 -05:00
|
|
|
<Plug>(easymotion-bd-f2) | See |<Plug>(easymotion-s2)|
|
2014-01-20 21:36:53 -05:00
|
|
|
<Plug>(easymotion-t2) | See |<Plug>(easymotion-t2)|
|
|
|
|
<Plug>(easymotion-T2) | See |<Plug>(easymotion-T2)|
|
|
|
|
<Plug>(easymotion-bd-t2) | See |<Plug>(easymotion-bd-t2)|
|
|
|
|
|
|
|
|
|
<Plug>(easymotion-sl2) | See |<Plug>(easymotion-sl2)|
|
|
|
|
<Plug>(easymotion-fl2) | See |<Plug>(easymotion-fl2)|
|
|
|
|
<Plug>(easymotion-Fl2) | See |<Plug>(easymotion-Fl2)|
|
|
|
|
<Plug>(easymotion-tl2) | See |<Plug>(easymotion-tl2)|
|
|
|
|
<Plug>(easymotion-Tl2) | See |<Plug>(easymotion-Tl2)|
|
|
|
|
|
|
2014-01-13 16:18:57 -05:00
|
|
|
<Plug>(easymotion-sn) | See |<Plug>(easymotion-sn)|
|
|
|
|
<Plug>(easymotion-fn) | See |<Plug>(easymotion-fn)|
|
|
|
|
<Plug>(easymotion-Fn) | See |<Plug>(easymotion-Fn)|
|
2014-02-05 14:21:55 -05:00
|
|
|
<Plug>(easymotion-bd-fn) | See |<Plug>(easymotion-sn)|
|
2014-01-13 16:18:57 -05:00
|
|
|
<Plug>(easymotion-tn) | See |<Plug>(easymotion-tn)|
|
|
|
|
<Plug>(easymotion-Tn) | See |<Plug>(easymotion-Tn)|
|
2014-01-20 21:35:45 -05:00
|
|
|
<Plug>(easymotion-bd-tn) | See |<Plug>(easymotion-bd-tn)|
|
2014-01-13 16:18:57 -05:00
|
|
|
|
|
|
|
|
<Plug>(easymotion-sln) | See |<Plug>(easymotion-sln)|
|
|
|
|
<Plug>(easymotion-fln) | See |<Plug>(easymotion-fln)|
|
|
|
|
<Plug>(easymotion-Fln) | See |<Plug>(easymotion-Fln)|
|
2014-02-05 14:21:55 -05:00
|
|
|
<Plug>(easymotion-bd-fln) | See |<Plug>(easymotion-sln)|
|
2014-01-13 16:18:57 -05:00
|
|
|
<Plug>(easymotion-tln) | See |<Plug>(easymotion-tln)|
|
|
|
|
<Plug>(easymotion-Tln) | See |<Plug>(easymotion-Tln)|
|
2014-02-05 14:21:55 -05:00
|
|
|
<Plug>(easymotion-bd-tln) | See |<Plug>(easymotion-bd-tln)|
|
2013-12-21 09:01:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
More mappings *easymotion-more-mappings*
|
2013-12-21 09:01:01 -05:00
|
|
|
|
|
|
|
These mappings are not mapped by Default.
|
|
|
|
|
2014-01-10 03:03:08 -05:00
|
|
|
Bidirection ~
|
|
|
|
|
2014-01-20 21:35:45 -05:00
|
|
|
Note: bd is short for bidirectional
|
|
|
|
|
2014-02-05 14:21:55 -05:00
|
|
|
<Plug>(easymotion-s) *<Plug>(easymotion-s)*
|
|
|
|
*<Plug>(easymotion-bd-f)*
|
2014-01-21 20:30:34 -05:00
|
|
|
Find {char} to bidirection(forward and backward at the same
|
|
|
|
time.) See |f| & |F|.
|
|
|
|
|
2014-01-20 21:35:45 -05:00
|
|
|
<Plug>(easymotion-bd-t) *<Plug>(easymotion-bd-t)*
|
2014-01-21 20:30:34 -05:00
|
|
|
Till before & after the {char}. See |t| & |T|.
|
2014-01-20 21:35:45 -05:00
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
<Plug>(easymotion-bd-w) *<Plug>(easymotion-bd-w)*
|
|
|
|
Beginning of word forward and backward. See |w| & |b|.
|
|
|
|
|
|
|
|
<Plug>(easymotion-bd-W) *<Plug>(easymotion-bd-W)*
|
|
|
|
Beginning of WORD forward and backward. See |W| & |B|.
|
|
|
|
|
|
|
|
<Plug>(easymotion-bd-e) *<Plug>(easymotion-bd-e)*
|
|
|
|
End of word forward and backward. See |e| & |ge|.
|
|
|
|
|
|
|
|
<Plug>(easymotion-bd-E) *<Plug>(easymotion-bd-E)*
|
|
|
|
End of WORD forward and backward. See |e| & |ge|.
|
|
|
|
|
|
|
|
<Plug>(easymotion-bd-jk) *<Plug>(easymotion-bd-jk)*
|
|
|
|
Line downward and upward. See |j| & |k|.
|
|
|
|
|
|
|
|
<Plug>(easymotion-bd-n) *<Plug>(easymotion-bd-n)*
|
|
|
|
Jump to latest "/" or "?" forward. See |n| & |N|.
|
|
|
|
|
2014-01-10 03:03:08 -05:00
|
|
|
Jump To Anywhere ~
|
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
<Plug>(easymotion-jumptoanywhere) *<Plug>(easymotion-jumptoanywhere)*
|
|
|
|
JumpToAnywhere motion!
|
|
|
|
Default: Beginning and End of word, Camelcase, after '_',
|
|
|
|
and after '#'.
|
|
|
|
You can modify this motion behavior by vimrc
|
|
|
|
|
|
|
|
|g:EasyMotion_re_anywhere|: *g:EasyMotion_re_anywhere*
|
|
|
|
>
|
|
|
|
let g:EasyMotion_re_anywhere = '\v' .
|
|
|
|
\ '(<.|^$)' . '|' .
|
|
|
|
\ '(.>|^$)' . '|' .
|
|
|
|
\ '(\l)\zs(\u)' . '|' .
|
|
|
|
\ '(_\zs.)' . '|' .
|
|
|
|
\ '(#\zs.)'
|
|
|
|
<
|
|
|
|
Modified example:
|
|
|
|
>
|
|
|
|
let g:EasyMotion_re_anywhere = '\v' .
|
|
|
|
\ '(<.|^)' . '|' .
|
|
|
|
\ '(<.|.$)' . '|' .
|
|
|
|
\ '(\l)\zs(\u)' . '|' .
|
|
|
|
<
|
2014-01-10 03:03:08 -05:00
|
|
|
Repeat ~
|
|
|
|
|
|
|
|
<Plug>(easymotion-repeat) *<Plug>(easymotion-repeat)*
|
2014-01-16 09:19:54 -05:00
|
|
|
Repeat last motion!
|
2014-01-10 03:03:08 -05:00
|
|
|
|
2014-01-16 09:19:54 -05:00
|
|
|
Repeat last motion type including input target character.
|
|
|
|
Nothing will happen when previous motion doesn't exist.
|
2014-01-10 03:03:08 -05:00
|
|
|
|
2014-01-16 09:19:54 -05:00
|
|
|
Last Find Motion~
|
2014-02-14 03:03:35 -05:00
|
|
|
With a Find motion (e.g. |<Plug>(easymotion-s)| ), type `<CR>`
|
|
|
|
without input characters to invoke the last find motion. This does
|
|
|
|
not repeat the motion type (e.g. other word motion,
|
|
|
|
<Plug>(easymotion-j) etc...) only input characters.
|
2014-01-16 06:51:36 -05:00
|
|
|
|
2014-01-16 09:18:56 -05:00
|
|
|
<Plug>(easymotion-next) *<Plug>(easymotion-next)*
|
2014-01-16 09:37:47 -05:00
|
|
|
<Plug>(easymotion-prev) *<Plug>(easymotion-prev)*
|
2014-01-16 09:18:56 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Jump to next/previous match. This is the only motion that can move to
|
|
|
|
off-screen locations. With set |'wrapscan'| enabled, this motion will
|
|
|
|
also wrap around the end of the file. During this motion, matched
|
|
|
|
text is highlighted. If you don't want highlighting, set
|
|
|
|
|g:EasyMotion_move_highlight| to 0.
|
2014-01-16 09:18:56 -05:00
|
|
|
|
|
|
|
Example:
|
|
|
|
>
|
|
|
|
nmap <Leader>; <Plug>(easymotion-next)
|
2014-01-16 09:37:47 -05:00
|
|
|
nmap <Leader>, <Plug>(easymotion-prev)
|
2014-01-16 09:18:56 -05:00
|
|
|
<
|
2014-03-21 04:13:30 -04:00
|
|
|
This feature is inspired by and based on vim-sneak. vim-sneak can be
|
|
|
|
downloaded here: https://github.com/justinmk/vim-sneak
|
2014-01-16 09:18:56 -05:00
|
|
|
|
2014-01-16 06:51:36 -05:00
|
|
|
EasyMotion dot repeat~
|
|
|
|
*easymotion-dotrepeat* *easymotion-textobjct*
|
|
|
|
|
|
|
|
This feature requires tpope/vim-repeat
|
|
|
|
https://github.com/tpope/vim-repeat
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
All motions support '.' repeat.
|
2014-01-16 06:51:36 -05:00
|
|
|
|
|
|
|
Example:
|
|
|
|
>
|
|
|
|
" vimrc:
|
|
|
|
omap z <Plug>(easymotion-t)
|
|
|
|
let g:EasyMotion_keys='hklyuiopnm,qwertzxcvbasdgjf;'
|
|
|
|
<
|
|
|
|
Text sample:
|
|
|
|
>
|
|
|
|
{cursor}Lorem ipsum dolor sit ame*t*, consectetur adipisicing eli*t*,
|
|
|
|
sed do eiusmod tempor
|
|
|
|
<
|
|
|
|
type `dzt` and type first target marker(in this case, `h`)
|
|
|
|
>
|
|
|
|
{cursor}*t*, consectetur adipisicing eli*t,* sed do eiusmod tempor
|
|
|
|
<
|
2014-02-14 03:03:35 -05:00
|
|
|
from here type '`.`' and you get:
|
2014-01-16 06:51:36 -05:00
|
|
|
>
|
|
|
|
*t,* sed do eiusmod tempor
|
|
|
|
<
|
|
|
|
|
2014-01-14 20:46:27 -05:00
|
|
|
JK Motion ~
|
|
|
|
*easymotion-jk-motion*
|
2014-01-13 21:37:32 -05:00
|
|
|
|
2014-01-14 20:46:27 -05:00
|
|
|
JK motion option *<Plug>(easymotion-j)* *<Plug>(easymotion-k)*
|
|
|
|
*g:EasyMotion_startofline*
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
The default behavior of the |j| and |k| is to move your cursor to the
|
|
|
|
start of the line. Set this option to 0 to force the cursor to stay in
|
|
|
|
the same column If you want to use both movements as separate
|
|
|
|
mappings, set |'g:EasyMotion_startofline'| to 0 and map
|
|
|
|
|<Plug>(easymotion-sol-j)| & |<Plug>(easymotion-sol-k)| to the start
|
|
|
|
of line mapping:
|
2014-01-14 20:46:27 -05:00
|
|
|
>
|
|
|
|
let g:EasyMotion_startofline = 0 # keep cursor colum JK motion
|
2014-01-22 23:45:05 -05:00
|
|
|
map <Leader>J <Plug>(easymotion-sol-j)
|
2014-01-24 03:03:28 -05:00
|
|
|
map <Leader>K <Plug>(easymotion-sol-k)
|
2014-01-14 20:46:27 -05:00
|
|
|
<
|
|
|
|
Default: 1
|
|
|
|
|
|
|
|
Start of Line JK motion *<Plug>(easymotion-sol-j)* *<Plug>(easymotion-sol-k)*
|
2014-01-24 03:03:28 -05:00
|
|
|
*<Plug>(easymotion-sol-bd-jk)*
|
2014-01-14 20:46:27 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Start of line J/K motion
|
2014-01-14 20:46:27 -05:00
|
|
|
Example:
|
|
|
|
>
|
2014-01-22 23:45:05 -05:00
|
|
|
map <Leader>J <Plug>(easymotion-sol-j)
|
2014-01-24 03:03:28 -05:00
|
|
|
map <Leader>K <Plug>(easymotion-sol-k)
|
2014-01-14 20:46:27 -05:00
|
|
|
<
|
|
|
|
End of Line JK motion *<Plug>(easymotion-eol-j)* *<Plug>(easymotion-eol-k)*
|
2014-01-24 03:03:28 -05:00
|
|
|
*<Plug>(easymotion-eol-bd-jk)*
|
2014-01-14 20:46:27 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
End of line J/K motion
|
2014-01-14 20:46:27 -05:00
|
|
|
Example:
|
|
|
|
>
|
2014-01-22 23:45:05 -05:00
|
|
|
map <Leader>J <Plug>(easymotion-eol-j)
|
|
|
|
map <Leader>K <Plug>(easymotion-eol-K)
|
2014-02-17 23:54:44 -05:00
|
|
|
<
|
|
|
|
|
|
|
|
iskeyword compatible word motions *<Plug>(easymotion-iskeyword-w)*
|
|
|
|
*<Plug>(easymotion-iskeyword-b)*
|
|
|
|
*<Plug>(easymotion-iskeyword-bd-w)*
|
|
|
|
*<Plug>(easymotion-iskeyword-e)*
|
|
|
|
*<Plug>(easymotion-iskeyword-ge)*
|
|
|
|
*<Plug>(easymotion-iskeyword-bd-e)*
|
|
|
|
Default word motions which EasyMotion provide is not completely
|
|
|
|
compatible with |iskeyword| options. But if you make default word
|
|
|
|
motion completely compatible with it, there will be so many targets
|
|
|
|
that they maybe annoy you, so provide |iskeyword| compatible word
|
|
|
|
motions with another |<Plug>| mappings.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
>
|
|
|
|
map <Leader>w <Plug>(easymotion-iskeyword-w)
|
|
|
|
map <Leader>b <Plug>(easymotion-iskeyword-b)
|
|
|
|
<
|
|
|
|
NOTE: Within line motions are compatible with |iskeyword| by default.
|
2014-01-10 03:03:08 -05:00
|
|
|
|
2014-06-28 04:22:12 -04:00
|
|
|
Search motion respect previous direction
|
|
|
|
|
|
|
|
<Plug>(easymotion-vim-n) *<Plug>(easymotion-vim-n)*
|
|
|
|
<Plug>(easymotion-vim-N) *<Plug>(easymotion-vim-N)*
|
|
|
|
|
|
|
|
This is vim compatible |n| & |N| easymotion. Unlike |<Plug>(easymotion-n)|
|
|
|
|
and |<Plug>(easymotion-N)| 's direction is always forward or backward,
|
|
|
|
these motions consider previous search direction.
|
|
|
|
|
2014-01-10 03:03:08 -05:00
|
|
|
Within line motion ~
|
2014-01-14 20:46:27 -05:00
|
|
|
*easymotion-within-line*
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-sl) *<Plug>(easymotion-sl)*
|
2014-02-05 14:21:55 -05:00
|
|
|
*<Plug>(easymotion-bd-fl)*
|
2014-02-14 03:03:35 -05:00
|
|
|
This function is same as |<Plug>(easymotion-s)|, except the range
|
|
|
|
is limited to the current cursor line.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
2014-01-10 02:47:35 -05:00
|
|
|
<Plug>(easymotion-fl) *<Plug>(easymotion-fl)*
|
2014-02-14 03:03:35 -05:00
|
|
|
This function is same as |<Plug>(easymotion-f)|, except the range
|
|
|
|
is limited to the current cursor line.
|
2014-01-10 02:47:35 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-Fl) *<Plug>(easymotion-Fl)*
|
2014-02-14 03:03:35 -05:00
|
|
|
This function is same as |<Plug>(easymotion-F)|, except the range
|
|
|
|
is limited to the current cursor line.
|
2014-01-10 02:47:35 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-tl) *<Plug>(easymotion-tl)*
|
2014-02-14 04:59:01 -05:00
|
|
|
This function is same as |<Plug>(easymotion-t)|, except the
|
|
|
|
range is limited to the current cursor line.
|
2014-01-10 02:47:35 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-Tl) *<Plug>(easymotion-Tl)*
|
2014-02-14 04:59:01 -05:00
|
|
|
This function is same as |<Plug>(easymotion-T)|, except the
|
|
|
|
range is limited to the current cursor line.
|
2014-01-10 02:47:35 -05:00
|
|
|
|
2014-01-20 21:35:45 -05:00
|
|
|
<Plug>(easymotion-bd-tl) *<Plug>(easymotion-bd-tl)*
|
2014-02-14 03:03:35 -05:00
|
|
|
This function is same as |<Plug>(easymotion-bd-t)|, except the
|
|
|
|
range is limited to the current cursor line.
|
2014-01-20 21:35:45 -05:00
|
|
|
|
2013-12-22 10:43:27 -05:00
|
|
|
<Plug>(easymotion-wl) *<Plug>(easymotion-wl)*
|
2014-02-17 23:54:44 -05:00
|
|
|
This function is same as |<Plug>(easymotion-iskeyword-w)|,
|
|
|
|
except the range is limited to the current cursor line.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-bl) *<Plug>(easymotion-bl)*
|
2014-02-17 23:54:44 -05:00
|
|
|
This function is same as |<Plug>(easymotion-iskeyword-b)|,
|
|
|
|
except the range is limited to the current cursor line.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-bd-wl) *<Plug>(easymotion-bd-wl)*
|
2014-02-17 23:54:44 -05:00
|
|
|
This function is same as |<Plug>(easymotion-iskeyword-bd-w)|,
|
|
|
|
except the range is limited to the current cursor line.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-el) *<Plug>(easymotion-el)*
|
2014-02-17 23:54:44 -05:00
|
|
|
This function is same as |<Plug>(easymotion-iskeyword-e)|,
|
|
|
|
except the range is limited to the current cursor line.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-gel) *<Plug>(easymotion-gel)*
|
2014-02-17 23:54:44 -05:00
|
|
|
This function is same as |<Plug>(easymotion-iskeyword-ge)|,
|
|
|
|
except the range is limited to the current cursor line.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-bd-el) *<Plug>(easymotion-bd-el)*
|
2014-02-17 23:54:44 -05:00
|
|
|
This function is same as |<Plug>(easymotion-iskeyword-bd-e)|,
|
|
|
|
except the range is limited to the current cursor line.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-lineforward) *<Plug>(easymotion-lineforward)*
|
2014-02-14 03:03:35 -05:00
|
|
|
This function is similar to
|
|
|
|
|<Plug>(easymotion-jumptoanywhere)|, except the range is
|
|
|
|
limited to the current cursor line in the forward direction.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-linebackward) *<Plug>(easymotion-linebackward)*
|
2014-02-14 03:03:35 -05:00
|
|
|
This function is similar to
|
|
|
|
|<Plug>(easymotion-jumptoanywhere)|, except the range is
|
|
|
|
limited to the current cursor line in the backward direction.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
<Plug>(easymotion-lineanywhere) *<Plug>(easymotion-lineanywhere)*
|
|
|
|
This function is same as |<Plug>(easymotion-jumptoanywhere)|,
|
2014-02-14 03:03:35 -05:00
|
|
|
but limited to within the current cursor line.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
You can customize the behavior of this function in your
|
|
|
|
vimrc.
|
2013-12-22 10:43:27 -05:00
|
|
|
|
|
|
|
|g:EasyMotion_re_line_anywhere|: *g:EasyMotion_re_line_anywhere*
|
|
|
|
|
|
|
|
Default:
|
|
|
|
>
|
|
|
|
let g:EasyMotion_re_line_anywhere = '\v' .
|
|
|
|
\ '(<.|^$)' . '|' .
|
|
|
|
\ '(.>|^$)' . '|' .
|
|
|
|
\ '(\l)\zs(\u)' . '|' .
|
|
|
|
\ '(_\zs.)' . '|' .
|
|
|
|
\ '(#\zs.)'
|
|
|
|
<
|
|
|
|
Modified example:
|
|
|
|
>
|
|
|
|
let g:EasyMotion_re_line_anywhere = '\v' .
|
|
|
|
\ '(<.|^)' . '|' .
|
|
|
|
\ '(>.|.$)' . '|' .
|
|
|
|
\ '(\l)\zs(\u)' . '|' .
|
2013-12-21 09:01:01 -05:00
|
|
|
|
2014-01-13 16:18:57 -05:00
|
|
|
Multi Input Find Motion!~
|
|
|
|
*easymotion-multi-input*
|
2014-01-20 21:36:53 -05:00
|
|
|
*easymotion-two-key*
|
2014-01-13 16:18:57 -05:00
|
|
|
*easymotion-{find}n*
|
|
|
|
*<Plug>(easymotion-{find}n)*
|
|
|
|
*<Plug>(easymotion-{find}2)*
|
|
|
|
|
|
|
|
EasyMotion provide another find motion by multi input target.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
>
|
2014-01-22 23:45:05 -05:00
|
|
|
nmap s <Plug>(easymotion-s2)
|
|
|
|
xmap s <Plug>(easymotion-s2)
|
|
|
|
omap z <Plug>(easymotion-s2)
|
|
|
|
nmap <Leader>s <Plug>(easymotion-sn)
|
|
|
|
xmap <Leader>s <Plug>(easymotion-sn)
|
|
|
|
omap <Leader>z <Plug>(easymotion-sn)
|
2014-01-13 16:18:57 -05:00
|
|
|
<
|
2014-02-14 03:03:35 -05:00
|
|
|
If you like typing two or more characters as targets, similar to vim-smalls
|
|
|
|
or vim-seek/vim-sneak, |EasyMotion| also provide this feature. With the above
|
2014-02-11 02:32:29 -05:00
|
|
|
keymapping,
|
2014-01-13 16:18:57 -05:00
|
|
|
|
|
|
|
Invoke EasyMotion by two character:
|
|
|
|
|
|
|
|
s{char}{char} (Type s{char}<CR> to use just one {char} is also allowed)
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
And you can use as many target characters as you like:
|
2014-01-13 16:18:57 -05:00
|
|
|
|
|
|
|
<Leader>s{char}{char}{char}...<CR>
|
|
|
|
|
2014-04-06 00:42:42 -04:00
|
|
|
You can use <C-h> to delete while typing, and Vim's default |n| & |N|
|
|
|
|
keymappings works after this motion(|<Plug>(easymotion-sn)|) to move next or
|
|
|
|
previous matches.
|
2014-01-13 16:18:57 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Note: the 'n' key motion provides incremental highlighting. If you don't
|
|
|
|
want to highlight incrementally, set |g:EasyMotion_inc_highlight|
|
|
|
|
to 0.
|
2014-08-16 03:30:55 -04:00
|
|
|
>
|
2014-02-14 03:03:35 -05:00
|
|
|
let g:EasyMotion_inc_highlight = 0
|
2014-08-16 03:30:55 -04:00
|
|
|
<
|
2014-02-14 03:03:35 -05:00
|
|
|
All Find motions (s,f,F,t,T,sl,fl,Fl,tl,Tl, see below) support this feature!
|
2014-01-13 16:18:57 -05:00
|
|
|
(|l| means within line motion)
|
|
|
|
|
|
|
|
*<Plug>(easymotion-sn)* *<Plug>(easymotion-fn)* *<Plug>(easymotion-Fn)*
|
2014-01-20 21:35:45 -05:00
|
|
|
*<Plug>(easymotion-tn)* *<Plug>(easymotion-Tn)* *<Plug>(easymotion-bd-tn)*
|
|
|
|
*<Plug>(easymotion-sln)* *<Plug>(easymotion-fln)* *<Plug>(easymotion-Fln)*
|
|
|
|
*<Plug>(easymotion-tln)* *<Plug>(easymotion-Tln)* *<Plug>(easymotion-bd-tln)*
|
|
|
|
|
2014-01-13 16:18:57 -05:00
|
|
|
|
|
|
|
*<Plug>(easymotion-s2)* *<Plug>(easymotion-f2)* *<Plug>(easymotion-F2)*
|
2014-01-20 21:35:45 -05:00
|
|
|
*<Plug>(easymotion-t2)* *<Plug>(easymotion-T2)* *<Plug>(easymotion-bd-t2)*
|
|
|
|
*<Plug>(easymotion-sl2)* *<Plug>(easymotion-fl2)* *<Plug>(easymotion-Fl2)*
|
2014-01-22 23:45:05 -05:00
|
|
|
*<Plug>(easymotion-tl2)* *<Plug>(easymotion-Tl2)* *<Plug>(easymotion-bd-tl2)*
|
2014-01-13 16:18:57 -05:00
|
|
|
|
2014-01-30 01:31:25 -05:00
|
|
|
Find Motion Command Line~
|
|
|
|
*easymotion-command-line*
|
2014-02-14 03:03:35 -05:00
|
|
|
EasyMotion has own command line for find motions, especially for
|
|
|
|
'n' key motion(e.g. |<Plug>(easymotion-sn)|). This command is inspired
|
|
|
|
by over.vim and actually uses over.vim's library. over.vim can be
|
|
|
|
downloaded here:
|
2014-01-30 01:31:25 -05:00
|
|
|
|
|
|
|
https://github.com/osyo-manga/vim-over
|
|
|
|
|
2014-02-05 01:09:52 -05:00
|
|
|
Library: https://github.com/osyo-manga/vital-over
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Note: These settings are experimental. They may be changed in the near
|
2014-01-30 01:31:25 -05:00
|
|
|
future.
|
|
|
|
|
|
|
|
Default Command Line Mappings~
|
2014-02-14 03:03:35 -05:00
|
|
|
Most default mappings work the same as the default command line mappings
|
|
|
|
of Vim. See |cmdline.txt|
|
2014-01-30 01:31:25 -05:00
|
|
|
|
|
|
|
Key Mappings | Details
|
|
|
|
----------------------- |----------------------------------------------
|
|
|
|
<CR> | Execute EasyMotion.
|
|
|
|
<ESC> or <C-c> | Cancel
|
2014-02-05 01:09:52 -05:00
|
|
|
<Right> or <C-f> | Cursor right
|
|
|
|
<Left> or <C-b> | Cursor left
|
|
|
|
<Home> or <C-a> | cursor to beginning of command-line
|
2014-01-30 01:31:25 -05:00
|
|
|
<End> or <C-e> | cursor to end of command-line
|
|
|
|
<BS> or <C-h> | Delete one character
|
2014-02-05 01:09:52 -05:00
|
|
|
<C-d> | Delete one character at the cursor pos
|
2014-01-30 01:31:25 -05:00
|
|
|
<C-w> | Delete the word before the cursor
|
|
|
|
<C-u> | Delete all entered characters before the cursor
|
2014-02-05 01:09:52 -05:00
|
|
|
<Up> or <C-p> | Recall older (previous) search from history
|
|
|
|
<Down> or <C-n> | Recall more recent (next) search from history
|
|
|
|
<C-r> {0-9a-z"%#:-=.} | Insert Register. See |c_Ctrl-R|
|
2014-02-07 11:46:18 -05:00
|
|
|
<C-r><C-w> | Insert the Word under cursor
|
|
|
|
<C-r><C-a> | Insert the |WORD| under cursor
|
|
|
|
<C-r><C-f> | Insert the Filename under cursor
|
2014-01-30 01:31:25 -05:00
|
|
|
------------------------|---------------------------------------
|
|
|
|
<Over>(paste) | Paste yanked text to the command line
|
|
|
|
| Default: <C-v>
|
2014-02-05 01:09:52 -05:00
|
|
|
<Over>(buffer-complete) | Completion of buffer text Default: <C-l>
|
2014-01-30 01:31:25 -05:00
|
|
|
*<Over>(em-scroll-f)* | Scroll window forward & jump to the next match
|
|
|
|
| Default: <Tab>
|
|
|
|
*<Over>(em-scroll-b)* | Scroll window backward & jump to previous match
|
|
|
|
| Default: <S-Tab>
|
|
|
|
*<Over>(em-jumpback)* | Jump back original cursor position like <C-o>
|
|
|
|
| Default: <C-o>
|
|
|
|
*<Over>(em-openallfold)* | Open all fold
|
|
|
|
| Default: <C-z>
|
|
|
|
|
|
|
|
Customize Command Line Mappings~
|
2014-02-05 01:09:52 -05:00
|
|
|
*EMCommandLineNoreMap*
|
2014-01-30 01:31:25 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
You can use |EMCommandLineNoreMap| (like |cnoremap|) to customize find
|
|
|
|
motion command line key mappings in your vimrc. This mapping is always
|
|
|
|
nonrecursive, so you should map to |<Over>(em-scroll-f)| and not <Tab>.
|
2014-01-30 01:31:25 -05:00
|
|
|
|
|
|
|
Example:
|
|
|
|
>
|
2014-02-05 01:09:52 -05:00
|
|
|
" == EM is short for EasyMotion
|
|
|
|
" Enter by <Space> to excute faster & easily
|
|
|
|
EMCommandLineNoreMap <Space> <CR>
|
|
|
|
EMCommandLineNoreMap <C-j> <Space>
|
|
|
|
" Enter by `;` to excute faster & easily
|
|
|
|
EMCommandLineNoreMap ; <CR>
|
|
|
|
EMCommandLineNoreMap <C-j> ;
|
|
|
|
" Buffer Completion with Ctrl-D
|
|
|
|
EMCommandLineNoreMap <C-d> <Over>(buffer-complete)
|
2014-01-30 01:31:25 -05:00
|
|
|
<
|
2014-02-05 01:09:52 -05:00
|
|
|
*EMCommandLineMap*
|
|
|
|
*EMCommandLineUnMap*
|
|
|
|
EasyMotion also provide |EMCommandLineMap| (like |cmap|) and
|
2014-02-14 03:03:35 -05:00
|
|
|
|EMCommandLineUnMap| (like |cunmap|), but you probably don't need
|
|
|
|
these commands because there is no case where it should require
|
|
|
|
recursive mappings.
|
2014-02-05 01:09:52 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Note(again): These settings, especially the keymappings are
|
|
|
|
__EXPERIMENTAL__. They could be changed in the near future. However, they
|
|
|
|
work well and are very useful, so I've released them anyway for now.
|
2014-01-13 16:18:57 -05:00
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
2.3 Special mappings *easymotion-special-mappings*
|
|
|
|
|
|
|
|
The default configuration defines the following mappings in visual and
|
|
|
|
operator-pending mode if |g:EasyMotion_do_special_mapping| is on:
|
|
|
|
>
|
|
|
|
let g:EasyMotion_do_special_mapping = 1
|
|
|
|
<
|
|
|
|
Default: 0
|
|
|
|
|
2013-10-09 08:59:33 -04:00
|
|
|
Special Mapping | Details
|
|
|
|
---------------------|----------------------------------------------
|
2013-12-21 09:01:01 -05:00
|
|
|
{operator}<Leader>l | Select, yank, paste, delete, or other operation of
|
|
|
|
| lines. See |<Plug>(easymotion-special-l)|.
|
|
|
|
{operator}<Leader>p | Select, yank, paste, delete, or other operation of
|
|
|
|
| phrase. See |<Plug>(easymotion-special-p)|.
|
|
|
|
|
2014-08-16 03:30:55 -04:00
|
|
|
Or you can map them yourself
|
2013-12-21 09:01:01 -05:00
|
|
|
|
|
|
|
<Plug> Mapping Table | Details
|
|
|
|
-----------------------------|--------------------------------------
|
|
|
|
<Plug>(easymotion-special-l) | See |<Plug>(easymotion-special-l)|
|
|
|
|
<Plug>(easymotion-special-p) | See |<Plug>(easymotion-special-p)|
|
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
|
2011-06-01 04:14:20 -04:00
|
|
|
See |easymotion-leader-key| and |mapleader| for details about the leader key.
|
2011-03-31 02:23:40 -04:00
|
|
|
|
2011-03-28 06:04:43 -04:00
|
|
|
==============================================================================
|
2014-01-30 19:50:15 -05:00
|
|
|
Requirements *easymotion-requirements*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2014-02-07 16:52:00 -05:00
|
|
|
EasyMotion needs at least vim 7.3 to run without problems.
|
2014-02-14 03:03:35 -05:00
|
|
|
Active development and testing is done with vim 7.4 starting from the 2.0
|
|
|
|
release of EasyMotion.
|
2011-03-29 09:40:20 -04:00
|
|
|
|
|
|
|
Vi-compatible mode must be disabled.
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
If your vim version is causing you problems with using this plugin, feel free
|
|
|
|
to open an issue on github!
|
2013-12-21 09:01:01 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Link: https://github.com/Lokaltog/vim-easymotion/issues
|
2013-12-21 09:01:01 -05:00
|
|
|
|
2011-03-28 06:04:43 -04:00
|
|
|
==============================================================================
|
2014-01-30 19:50:15 -05:00
|
|
|
Configuration *easymotion-configuration*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
EasyMotion will work fine without any configuration, but you can override the
|
|
|
|
default behavior by setting configuration variables globally in your |vimrc|
|
|
|
|
file.
|
2011-03-29 09:40:20 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
Example (this will change the target keys and disable shading): >
|
2011-03-29 09:40:20 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
let g:EasyMotion_keys = '1234567890'
|
|
|
|
let g:EasyMotion_do_shade = 0
|
2011-03-29 09:40:20 -04:00
|
|
|
|
2011-03-28 06:04:43 -04:00
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
EasyMotion_keys *EasyMotion_keys*
|
|
|
|
*g:EasyMotion_keys*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Set the keys to be used for motion targets. You can have as many (or few)
|
|
|
|
keys as you want. It's recommended to add as many keys as you are comfortable
|
|
|
|
typing, because here's a lower chance that the motion targets will be grouped
|
|
|
|
if many keys are available. However, this has its limits; most people find it
|
|
|
|
easier to type 2 lowercase keys than to chord a key with shift, so you may
|
|
|
|
want to leave out keys that are harder to type, like capital letters.
|
|
|
|
EasyMotion also uses the last keys to group targets, so it's recommended to
|
|
|
|
set the last keys to ones that are easier to type, like `f`,`j`,`;`, etc.
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2014-02-06 23:46:54 -05:00
|
|
|
Default: 'asdghklqwertyuiopzxcvbnmfj;'
|
|
|
|
|
|
|
|
Example:
|
|
|
|
>
|
|
|
|
" Lower a-z
|
|
|
|
let g:EasyMotion_keys = 'abcdefghijklmnopqrstuvwxyz'
|
|
|
|
" a-z & A-Z
|
|
|
|
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
|
|
" a-z & A-Z & 0-9
|
|
|
|
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
|
|
|
|
" qwerty
|
|
|
|
'asdfghjkl;qwertyuiopzxcvbnm'
|
2014-02-24 07:50:51 -05:00
|
|
|
" You can use non-ascii, multibyte key characters as well
|
|
|
|
'asdfghjkl;qwertyuiopzxcvbnmèòàùì'
|
2014-02-06 23:46:54 -05:00
|
|
|
<
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
EasyMotion_do_shade *EasyMotion_do_shade*
|
|
|
|
*g:EasyMotion_do_shade*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
The default behavior is to shade the text following the cursor (forward
|
2014-02-14 03:03:35 -05:00
|
|
|
motions), preceding the cursor (backward motions), or on either side of the
|
|
|
|
cursor (bidirectional motions) to make the motion targets more visible. Set
|
|
|
|
this option to 0 if you want to disable text shading.
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
Default: 1
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
EasyMotion_do_mapping *EasyMotion_do_mapping*
|
|
|
|
*g:EasyMotion_do_mapping*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
Set this option to 0 if you want to disable the default mappings. See
|
|
|
|
|easymotion-default-mappings| for details about the default mappings.
|
2011-03-29 09:40:20 -04:00
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
Note: If you disable this option, you'll have to map the motions yourself.
|
|
|
|
See |easymotion-custom-mappings| for customizing the default mappings.
|
2011-03-29 09:40:20 -04:00
|
|
|
|
2011-03-31 02:23:40 -04:00
|
|
|
Default: 1
|
|
|
|
|
2011-04-01 02:01:48 -04:00
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
EasyMotion_grouping *EasyMotion_grouping*
|
|
|
|
*g:EasyMotion_grouping*
|
2011-04-02 11:14:38 -04:00
|
|
|
|
|
|
|
When there are too many possible targets on the screen, the results have to be
|
|
|
|
grouped. This configuration option lets you change which grouping algorithm
|
|
|
|
you want to use. There are two grouping algorithms available:
|
|
|
|
|
|
|
|
* Single-key priority (value: 1)
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
This algorithm prioritizes single-key jumps for the targets closest to
|
|
|
|
the cursor and only groups the last jump targets to maximize the amount
|
|
|
|
of single-key jumps.
|
|
|
|
|
|
|
|
This algorithm works recursively and will work with as few keys as two.
|
|
|
|
|
|
|
|
Example (with |EasyMotion_keys| = "abcdef"): >
|
|
|
|
|
|
|
|
x x x x x x x x x
|
|
|
|
<
|
|
|
|
The |w| motion is triggered: >
|
|
|
|
|
|
|
|
a b c d e f f f f
|
|
|
|
^ ^ ^ ^ ^ Direct jump to target
|
|
|
|
^ ^ ^ ^ Enter group "f"
|
|
|
|
<
|
|
|
|
* Original (value: 2)
|
|
|
|
--------
|
|
|
|
|
|
|
|
This is the original algorithm which always groups all targets if there
|
|
|
|
are too many possible motion targets.
|
|
|
|
|
|
|
|
Example (with |EasyMotion_keys| = "abcdef"): >
|
|
|
|
|
|
|
|
x x x x x x x x x
|
|
|
|
<
|
|
|
|
The |w| motion is triggered: >
|
|
|
|
|
|
|
|
a a a a a a b b b
|
|
|
|
^ ^ ^ ^ ^ ^ Enter group "a"
|
|
|
|
^ ^ ^ Enter group "b"
|
|
|
|
|
|
|
|
Default: 1
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
Smartcase *EasyMotion_smartcase*
|
|
|
|
*g:EasyMotion_smartcase*
|
2013-10-04 13:34:48 -04:00
|
|
|
|
2013-10-23 12:06:41 -04:00
|
|
|
Matching target keys by smartcase. You can type target keys more lazily.
|
2013-10-04 13:34:48 -04:00
|
|
|
|
2013-10-09 08:59:33 -04:00
|
|
|
Add following description in your vimrc: >
|
|
|
|
|
|
|
|
let g:EasyMotion_smartcase = 1
|
|
|
|
|
|
|
|
Default:0
|
2013-12-21 09:01:01 -05:00
|
|
|
|
2013-10-23 12:06:41 -04:00
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
Smartsign *EasyMotion_smartsign*
|
|
|
|
*g:EasyMotion_use_smartsign_us*
|
|
|
|
*g:EasyMotion_use_smartsign_ja*
|
2013-12-29 01:19:42 -05:00
|
|
|
|
|
|
|
Matching signs target keys by smartcase like. E.g. type '1' and it matches
|
|
|
|
both '1' and '!' in Find motion.
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
This feature depends on your keyboard layout, so you must choose which
|
|
|
|
keyboard layout you use.
|
2013-12-29 01:19:42 -05:00
|
|
|
|
|
|
|
How to discriminate:
|
|
|
|
Shift-2 = @ -> US layout
|
|
|
|
Shift-2 = " -> JP layout
|
|
|
|
|
|
|
|
>
|
|
|
|
let g:EasyMotion_use_smartsign_us = 1
|
|
|
|
<
|
|
|
|
or
|
|
|
|
>
|
|
|
|
let g:EasyMotion_use_smartsign_jp = 1
|
|
|
|
<
|
|
|
|
|
|
|
|
Default: 0
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
Migemo *EasyMotion_use_migemo*
|
|
|
|
*g:EasyMotion_use_migemo*
|
2013-10-23 12:06:41 -04:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
|Easymotion| can match multibyte Japanese character with alphabetical input.
|
|
|
|
For example, '<Leader><Leader>fa' can search 'あ'. This feature doesn't
|
|
|
|
require |cmigemo| because |Easymotion| already includes basic regex patterns
|
|
|
|
generated by cmigemo.
|
2013-10-23 12:06:41 -04:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
See http://0xcc.net/migemo/ if you want to know more about migemo.
|
2013-10-23 12:06:41 -04:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Add following line to your vimrc to enable this option: >
|
2013-10-23 12:06:41 -04:00
|
|
|
|
|
|
|
let g:EasyMotion_use_migemo = 1
|
|
|
|
|
|
|
|
Default:0
|
|
|
|
|
|
|
|
This feature is based on rhysd(@Linda_pp)'s clever-f script,
|
|
|
|
which can be downloaded here:
|
|
|
|
|
|
|
|
https://github.com/rhysd/clever-f.vim
|
2013-10-04 13:34:48 -04:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
Show target key by upper letter *EasyMotion_use_upper*
|
|
|
|
*g:EasyMotion_use_upper*
|
2013-12-20 12:34:48 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
With this option enabled, |Easymotion| will shows target labels with
|
|
|
|
uppercase letters, but allow you to type it in lowercase and have Easymotion
|
|
|
|
automatically convert it uppercase.
|
2013-12-20 12:34:48 -05:00
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
This feature improve targets' readability.
|
2013-12-20 12:34:48 -05:00
|
|
|
|
|
|
|
Example: >
|
|
|
|
|
|
|
|
<cursor>Lorem ipsum dolor sit amet.
|
|
|
|
|
|
|
|
Type <Leader><Leader>w and the text is updated: >
|
|
|
|
|
|
|
|
<cursor>Lorem {A}psum {B}olor {C}it {D}met.
|
|
|
|
|
|
|
|
Press "c" (<- lowercase!) to jump to the beginning of the word "sit": >
|
|
|
|
|
|
|
|
Lorem ipsum dolor <cursor>sit amet.
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Add following description in your vimrc to enable this: >
|
2013-12-20 12:34:48 -05:00
|
|
|
|
|
|
|
let g:EasyMotion_use_upper = 1
|
|
|
|
let g:EasyMotion_keys = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ;'
|
|
|
|
|
|
|
|
Default:0
|
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
Note: Make sure |g:EasyMotion_keys| doesn't include lowercase
|
2013-12-20 12:34:48 -05:00
|
|
|
|
|
|
|
This feature is inspired by t9md's vim-smalls, which can be downloaded here:
|
|
|
|
|
|
|
|
https://github.com/t9md/vim-smalls
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
2014-02-06 07:22:25 -05:00
|
|
|
Jump to first match by Enter or Space *EasyMotion_enter_jump_first*
|
2014-01-30 19:50:15 -05:00
|
|
|
*g:EasyMotion_enter_jump_first*
|
2014-02-06 07:22:25 -05:00
|
|
|
*EasyMotion_space_jump_first*
|
|
|
|
*g:EasyMotion_space_jump_first*
|
2014-01-30 19:50:15 -05:00
|
|
|
|
2014-02-06 07:22:25 -05:00
|
|
|
Type Enter or Space key and jump to first match (first letter of
|
|
|
|
|g:EasyMotion_keys| ).
|
2014-01-30 19:50:15 -05:00
|
|
|
|
|
|
|
Set this option to 1 if you want to enable this feature.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
>
|
|
|
|
let g:EasyMotion_enter_jump_first = 1
|
2014-02-06 07:22:25 -05:00
|
|
|
let g:EasyMotion_space_jump_first = 1
|
2014-01-30 19:50:15 -05:00
|
|
|
<
|
|
|
|
Default: 0
|
|
|
|
|
|
|
|
|
|
|
|
Customize command line prompt *EasyMotion_prompt*
|
|
|
|
*g:EasyMotion_prompt*
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Use this command to customize the command line prompt message in find
|
|
|
|
motion. `{n}` is how many characters you type, and if {n} == 1 `(s)` will
|
|
|
|
be ignored.
|
2014-01-30 19:50:15 -05:00
|
|
|
|
|
|
|
Sample:
|
|
|
|
>
|
|
|
|
let g:EasyMotion_prompt = '{n}>>> '
|
|
|
|
<
|
|
|
|
Default:
|
|
|
|
>
|
|
|
|
let g:EasyMotion_prompt = 'Search for {n} character(s): '
|
|
|
|
<
|
|
|
|
This message will be:
|
|
|
|
|<Plug>(easymotion-s)| -> 'Search for 1 character: '
|
|
|
|
|<Plug>(easymotion-s2)| -> 'Search for 2 characters: '
|
|
|
|
|<Plug>(easymotion-sn)| -> 'Search for characters: '
|
|
|
|
|
|
|
|
Customize highlight behavior *EasyMotion_highlight*
|
|
|
|
*g:EasyMotion_inc_highlight*
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
Using the 'n' key find motion (e.g. |<Plug>(easymotion-sn)|), EasyMotion
|
|
|
|
by default incrementally highlights matched text. If you don't want this
|
|
|
|
feature, set this option to 0
|
2014-01-30 19:50:15 -05:00
|
|
|
>
|
|
|
|
let g:EasyMotion_inc_highlight = 0
|
2014-02-18 05:57:40 -05:00
|
|
|
<
|
2014-01-30 19:50:15 -05:00
|
|
|
Default: 1
|
|
|
|
|
|
|
|
*g:EasyMotion_move_highlight*
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
By default, when using |<Plug>(easymotion-next)| and/or
|
|
|
|
|<Plug>(easymotion-prev)|, EasyMotion highlights matched text until the
|
|
|
|
cursor moves, enters insert mode, or leaves the buffer. If you don't want
|
|
|
|
this feature, set this option to 0.
|
2014-01-30 19:50:15 -05:00
|
|
|
>
|
|
|
|
let g:EasyMotion_move_highlight = 0
|
2014-02-14 04:59:01 -05:00
|
|
|
<
|
2014-01-30 19:50:15 -05:00
|
|
|
Default: 1
|
|
|
|
|
|
|
|
*g:EasyMotion_landing_highlight*
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
If you want to keep highlights temporarily after EasyMotion
|
|
|
|
jumps to a destination (with timing set to
|
|
|
|
|g:EasyMotion_move_highlight|), set this option to 0.
|
2014-01-30 19:50:15 -05:00
|
|
|
>
|
|
|
|
let g:EasyMotion_landing_highlight = 1
|
|
|
|
<
|
|
|
|
Default: 0
|
|
|
|
|
|
|
|
EasyMotion_add_search_history *g:EasyMotion_add_search_history*
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
If you set this option to 1, the 'n' key find motion will add the
|
2014-02-21 13:03:28 -05:00
|
|
|
inputted pattern to vim default search history. If you want to disable
|
|
|
|
this feature, set this value to 0.
|
2014-01-30 19:50:15 -05:00
|
|
|
>
|
2014-03-15 21:12:00 -04:00
|
|
|
let g:EasyMotion_add_search_history = 0
|
|
|
|
<
|
2014-02-21 13:03:28 -05:00
|
|
|
Default: 1
|
2014-01-30 19:50:15 -05:00
|
|
|
|
|
|
|
EasyMotion_off_screen_search *g:EasyMotion_off_screen_search*
|
|
|
|
|
2014-02-14 03:03:35 -05:00
|
|
|
If you set this option to 1, the 'n' key find motion will search patterns
|
2014-02-21 13:03:28 -05:00
|
|
|
even outside of the current screen range. If you want to disable this
|
|
|
|
feature, set this value to 0.
|
2014-01-30 19:50:15 -05:00
|
|
|
>
|
2014-02-21 13:03:28 -05:00
|
|
|
let g:EasyMotion_off_screen_search = 0
|
2014-01-30 19:50:15 -05:00
|
|
|
<
|
2014-02-21 13:03:28 -05:00
|
|
|
Default: 1
|
2014-01-30 19:50:15 -05:00
|
|
|
|
2014-02-18 03:52:12 -05:00
|
|
|
EasyMotion_disable_two_key_combo *g:EasyMotion_disable_two_key_combo*
|
|
|
|
|
2014-08-16 03:30:55 -04:00
|
|
|
If you set this option to 1, you can disable the two key combo feature.
|
2014-02-18 03:52:12 -05:00
|
|
|
>
|
|
|
|
let g:EasyMotion_disable_two_key_combo = 1
|
|
|
|
<
|
|
|
|
Default: 0
|
|
|
|
|
2014-01-30 19:50:15 -05:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
Custom highlighting *easymotion-custom-hl*
|
2011-04-03 11:23:23 -04:00
|
|
|
|
|
|
|
The default EasyMotion configuration uses two highlighting groups that link
|
|
|
|
to groups with default values. The highlighting groups are:
|
|
|
|
|
|
|
|
* EasyMotionTarget
|
|
|
|
|
|
|
|
Highlights motion targets, the default value is bold red
|
|
|
|
|
2013-10-04 07:01:38 -04:00
|
|
|
* EasyMotionTarget2First
|
|
|
|
* EasyMotionTarget2Second
|
|
|
|
|
|
|
|
Highlights motion targets, when target is two keys
|
|
|
|
|
2011-04-03 11:23:23 -04:00
|
|
|
* EasyMotionShade
|
|
|
|
|
|
|
|
Highlights shaded text, the default value is dark gray
|
|
|
|
|
|
|
|
There are two ways to override the default colors:
|
|
|
|
|
|
|
|
1) Set the highlighting in your color scheme
|
|
|
|
|
|
|
|
This will only affect a single color scheme. The default red/gray colors
|
|
|
|
will be used if you change the color scheme to one that doesn't assign
|
|
|
|
any EasyMotion colors.
|
|
|
|
|
|
|
|
Example: >
|
|
|
|
|
|
|
|
hi EasyMotionTarget ctermbg=none ctermfg=green
|
|
|
|
hi EasyMotionShade ctermbg=none ctermfg=blue
|
2013-10-04 07:01:38 -04:00
|
|
|
|
|
|
|
hi EasyMotionTarget2First ctermbg=none ctermfg=red
|
|
|
|
hi EasyMotionTarget2Second ctermbg=none ctermfg=lightred
|
2011-04-03 11:23:23 -04:00
|
|
|
<
|
|
|
|
2) Set the highlighting in your vimrc
|
|
|
|
|
|
|
|
This is ideal if you want to link the colors to highlighting groups that
|
|
|
|
are available in almost every color scheme, e.g. |ErrorMsg| (usually
|
|
|
|
bright red) and Comment (usually faded). You can be sure that the
|
|
|
|
color scheme's colors will be used instead of the default red/gray
|
|
|
|
if you choose this option.
|
|
|
|
|
|
|
|
Example: >
|
|
|
|
|
|
|
|
hi link EasyMotionTarget ErrorMsg
|
|
|
|
hi link EasyMotionShade Comment
|
2013-10-04 07:01:38 -04:00
|
|
|
|
|
|
|
hi link EasyMotionTarget2First MatchParen
|
|
|
|
hi link EasyMotionTarget2Second MatchParen
|
2011-04-03 11:23:23 -04:00
|
|
|
<
|
2013-12-21 09:01:01 -05:00
|
|
|
|
2014-02-11 23:11:31 -05:00
|
|
|
Use CSApprox *EasyMotion_force_csapprox*
|
|
|
|
*g:EasyMotion_force_csapprox*
|
|
|
|
if you install CSApprox & want to use gui color for EasyMotion, set this
|
|
|
|
option to 1.
|
|
|
|
>
|
|
|
|
let g:EasyMotion_force_csapprox = 1
|
|
|
|
<
|
|
|
|
Default: 0
|
|
|
|
|
2011-04-03 11:23:23 -04:00
|
|
|
------------------------------------------------------------------------------
|
2014-01-30 19:50:15 -05:00
|
|
|
Custom mappings *easymotion-custom-mappings*
|
2011-04-01 02:01:48 -04:00
|
|
|
|
|
|
|
EasyMotion allows you to customize all default mappings to avoid conflicts
|
2011-06-01 04:14:20 -04:00
|
|
|
with existing mappings. It is possible to change the default leader key
|
|
|
|
of all mappings to another key or sequence. It is also possible to fine
|
|
|
|
tune the plugin to your need by changing every single sequence.
|
2011-04-02 08:30:25 -04:00
|
|
|
|
2014-01-30 19:50:15 -05:00
|
|
|
Leader key *EasyMotion_leader_key* *easymotion-leader-key*
|
2014-01-10 05:55:53 -05:00
|
|
|
*<Plug>(easymotion-prefix)*
|
2011-06-01 04:14:20 -04:00
|
|
|
|
2014-01-22 23:45:05 -05:00
|
|
|
The default leader key can be changed with the |<Plug>(easymotion-prefix)|
|
2011-04-02 08:30:25 -04:00
|
|
|
|
2014-01-10 05:55:53 -05:00
|
|
|
Set this keymapping to the key sequence to use as the prefix of the mappings
|
2011-04-02 08:30:25 -04:00
|
|
|
described in |easymotion-default-mappings|.
|
|
|
|
|
2013-10-04 07:35:22 -04:00
|
|
|
Note: The default leader key has been changed to '<Leader><Leader>' to
|
|
|
|
avoid conflicts with other plugins. You can revert to the original
|
2014-01-10 05:55:53 -05:00
|
|
|
leader by setting this keymapping in your vimrc: >
|
2011-06-01 04:14:20 -04:00
|
|
|
|
2014-01-22 23:45:05 -05:00
|
|
|
map <Leader> <Plug>(easymotion-prefix)
|
2011-06-01 04:14:20 -04:00
|
|
|
<
|
2011-11-07 08:42:45 -05:00
|
|
|
Default: '<Leader><Leader>'
|
2011-04-02 08:30:25 -04:00
|
|
|
|
2014-01-30 19:50:15 -05:00
|
|
|
Custom Keys *easymotion-custom-keys*
|
2011-04-02 08:30:25 -04:00
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
All custom mappings follow the same format: >
|
2011-04-01 02:01:48 -04:00
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
<Plug>(easymotion-{motion})
|
2011-06-01 04:14:20 -04:00
|
|
|
<
|
2011-04-01 02:01:48 -04:00
|
|
|
Example: >
|
|
|
|
|
2014-01-13 12:58:19 -05:00
|
|
|
map s <Plug>(easymotion-s)
|
2013-12-21 09:01:01 -05:00
|
|
|
map _f <Plug>(easymotion-f)
|
|
|
|
map <C-T> <Plug>(easymotion-T)
|
2011-06-01 04:14:20 -04:00
|
|
|
<
|
2013-12-21 09:01:01 -05:00
|
|
|
See |easymotion-plug-table| for a table of motions that can be mapped
|
2011-04-01 02:01:48 -04:00
|
|
|
and their default values.
|
|
|
|
|
2011-03-28 06:04:43 -04:00
|
|
|
==============================================================================
|
2014-01-30 19:50:15 -05:00
|
|
|
License *easymotion-license*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2014-11-13 07:24:00 -05:00
|
|
|
License: MIT license
|
|
|
|
|
2014-12-31 10:59:21 -05:00
|
|
|
Copyright (c) 2014-2015 Kim Silkebækken, haya14busa
|
2014-11-13 07:24:00 -05:00
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
SOFTWARE.
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
==============================================================================
|
2014-01-30 19:50:15 -05:00
|
|
|
Known bugs *easymotion-known-bugs*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2014-01-30 19:50:15 -05:00
|
|
|
See: https://github.com/Lokaltog/vim-easymotion/issues
|
2013-12-21 09:01:01 -05:00
|
|
|
|
|
|
|
Pull Requests are welcome! :)
|
2011-03-28 06:04:43 -04:00
|
|
|
|
|
|
|
==============================================================================
|
2014-01-30 19:50:15 -05:00
|
|
|
Contributing *easymotion-contributing*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-29 09:40:20 -04:00
|
|
|
If you experience any bugs or have feature requests, please open an issue on
|
|
|
|
GitHub. Fork the source repository on GitHub and send a pull request if you
|
|
|
|
have any code improvements.
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-03-29 08:10:00 -04:00
|
|
|
Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
|
2014-02-11 02:32:29 -05:00
|
|
|
haya14busa <hayabusa1419@gmail.com> (since version 2.0)
|
2011-03-29 08:10:00 -04:00
|
|
|
Source repository: https://github.com/Lokaltog/vim-easymotion
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2013-12-21 09:01:01 -05:00
|
|
|
|
2011-03-28 06:04:43 -04:00
|
|
|
==============================================================================
|
2014-01-30 19:50:15 -05:00
|
|
|
Credits *easymotion-credits*
|
2011-03-28 06:04:43 -04:00
|
|
|
|
2011-04-02 16:34:29 -04:00
|
|
|
- Ben Boeckel: ge and WORD motions
|
2011-03-31 11:20:49 -04:00
|
|
|
- Drew Neil: operator-pending mappings
|
2011-04-01 02:01:54 -04:00
|
|
|
- Rob O'Dwyer: customizable mappings without giving up all defaults
|
2011-04-02 11:18:43 -04:00
|
|
|
- Michel D'Hooge: customizable leader
|
2011-06-01 04:14:20 -04:00
|
|
|
- Maxime Bourget: search motion, improved JK motion behavior
|
2011-06-17 16:28:32 -04:00
|
|
|
- Kearn Holliday: fix jumplist issues
|
2011-06-18 08:16:54 -04:00
|
|
|
- Shougo Matsushita: fix CSApprox issue
|
2014-01-30 19:50:15 -05:00
|
|
|
- supasorn: two key combos and bidirectional motion
|
|
|
|
- mtth: startofline(keep column)
|
|
|
|
- bootleq: fixed bufname bug
|
|
|
|
- mattn: fix multibyte handling
|
|
|
|
- yuex: fix visual mode selection bug (o command)
|
2011-03-30 11:59:53 -04:00
|
|
|
|
2014-02-11 02:32:29 -05:00
|
|
|
and more!: https://github.com/Lokaltog/vim-easymotion/graphs/contributors
|
|
|
|
|
2011-03-28 06:04:43 -04:00
|
|
|
EasyMotion is based on Bartlomiej Podolak's great PreciseJump script, which
|
|
|
|
can be downloaded here:
|
|
|
|
|
|
|
|
http://www.vim.org/scripts/script.php?script_id=3437
|
|
|
|
|
2014-02-11 02:32:29 -05:00
|
|
|
Special Thanks for other plugins and the authors:~
|
2014-02-11 02:50:07 -05:00
|
|
|
Migemo feature:
|
2014-02-11 02:32:29 -05:00
|
|
|
- Author: rhysd(@Linda_pp)
|
|
|
|
- https://github.com/rhysd/clever-f.vim
|
|
|
|
Show uppercase feature:
|
|
|
|
- Author: t9md
|
|
|
|
- https://github.com/t9md/vim-smalls
|
2014-02-11 02:50:07 -05:00
|
|
|
Find motion command line:
|
2014-02-11 02:32:29 -05:00
|
|
|
- Author: osyo-manga
|
|
|
|
- https://github.com/osyo-manga/vim-over
|
|
|
|
- Library: https://github.com/osyo-manga/vital-over
|
|
|
|
2-key find motion:
|
|
|
|
- Authors: goldfeld & justinmk
|
|
|
|
- https://github.com/goldfeld/vim-seek
|
2014-02-11 02:50:07 -05:00
|
|
|
- https://github.com/justinmk/vim-sneak
|
2014-02-11 02:32:29 -05:00
|
|
|
Next/Previous motion:
|
|
|
|
- Author: justinmk
|
2014-02-11 02:50:07 -05:00
|
|
|
- https://github.com/justinmk/vim-sneak
|
2014-02-11 02:32:29 -05:00
|
|
|
Dot repeat feature:
|
|
|
|
- Author: tpope
|
|
|
|
- https://github.com/tpope/vim-repeat
|
2014-01-30 19:50:15 -05:00
|
|
|
|
2011-03-28 06:04:43 -04:00
|
|
|
==============================================================================
|
|
|
|
vim:tw=78:sw=4:ts=8:ft=help:norl:
|