This commit is contained in:
haya14busa 2014-03-03 23:08:46 +09:00
parent 412699d466
commit 3949408e59
2 changed files with 5 additions and 4 deletions

View File

@ -136,7 +136,7 @@ nmap t <Plug>(easymotion-t2)
### n-character search motion ### n-character search motion
You can also search for `n` characters, which basically can be used to replace the default search of Vim. You can also search for `n` characters, which basically can be used to replace the default search of Vim.
It suports incremental highlighting and you can use `<Tab>` and `<S-Tab>` to scroll down/up a page. If you press It supports incremental highlighting and you can use `<Tab>` and `<S-Tab>` to scroll down/up a page. If you press
`<CR>` you get the usual EasyMotion highlighting and can jump to any matching target destination with a `<CR>` you get the usual EasyMotion highlighting and can jump to any matching target destination with a
single keystroke. single keystroke.

View File

@ -3,7 +3,7 @@
" Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com> " Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
" haya14busa <hayabusa1419@gmail.com> " haya14busa <hayabusa1419@gmail.com>
" Source: https://github.com/Lokaltog/vim-easymotion " Source: https://github.com/Lokaltog/vim-easymotion
" Last Change: 26 Feb 2014. " Last Change: 03 Mar 2014.
"============================================================================= "=============================================================================
" Saving 'cpoptions' {{{ " Saving 'cpoptions' {{{
scriptencoding utf-8 scriptencoding utf-8
@ -96,7 +96,7 @@ function! EasyMotion#reset()
" start_position: " start_position:
" Original, start cursor position. " Original, start cursor position.
" cursor_position: " cursor_position:
" Usually, this valuse is same with start_position, but in " Usually, this values is same with start_position, but in
" visualmode and 'n' key motion, this value could be different. " visualmode and 'n' key motion, this value could be different.
return "" return ""
endfunction "}}} endfunction "}}}
@ -1111,7 +1111,8 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive) " {{{
keepjumps call cursor(s:current.cursor_position) keepjumps call cursor(s:current.cursor_position)
"}}} "}}}
" Update s:current.original_position " Update s:current.original_position
let s:current.original_position = v_original_pos " overwrite original start positio " overwrite original start position
let s:current.original_position = v_original_pos
endif "}}} endif "}}}
" Handle bi-directional t motion {{{ " Handle bi-directional t motion {{{