Find motion: Convert space to start of spaces
This commit is contained in:
parent
34a3289f6f
commit
db1e6a6a91
@ -1,7 +1,7 @@
|
|||||||
" EasyMotion - Vim motions on speed!
|
" EasyMotion - Vim motions on speed!
|
||||||
"
|
"
|
||||||
" Author: haya14busa <hayabusa1419@gmail.com>
|
" Author: haya14busa <hayabusa1419@gmail.com>
|
||||||
" Last Change: 26 Jan 2014.
|
" Last Change: 27 Jan 2014.
|
||||||
" Source: https://github.com/haya14busa/vim-easymotion
|
" Source: https://github.com/haya14busa/vim-easymotion
|
||||||
"
|
"
|
||||||
" Original Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
|
" Original Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
|
||||||
@ -595,6 +595,11 @@ function! s:convertRegep(input) "{{{
|
|||||||
" 4. smartcase
|
" 4. smartcase
|
||||||
let re = s:should_use_regexp() ? a:input : escape(a:input, '.$^~\[]')
|
let re = s:should_use_regexp() ? a:input : escape(a:input, '.$^~\[]')
|
||||||
|
|
||||||
|
" Convert space to match only start of spaces
|
||||||
|
if re =~# '\s'
|
||||||
|
let re = '\s\+'
|
||||||
|
endif
|
||||||
|
|
||||||
if s:should_use_migemo(a:input)
|
if s:should_use_migemo(a:input)
|
||||||
let re = s:convertMigemo(re)
|
let re = s:convertMigemo(re)
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user