Implement uppercase target
Show target label by uppercase letter, but you can type it as lowercase Make sure g:EasyMotion_keys doesn't include lowercase
This commit is contained in:
parent
ab391daf44
commit
dfbc3415a0
@ -745,6 +745,9 @@ endfunction "}}}
|
|||||||
call s:Prompt('Target key')
|
call s:Prompt('Target key')
|
||||||
|
|
||||||
let char = s:GetChar()
|
let char = s:GetChar()
|
||||||
|
if g:EasyMotion_use_upper == 1 && match(g:EasyMotion_keys, '\l') == -1
|
||||||
|
let char = toupper(char)
|
||||||
|
endif
|
||||||
" }}}
|
" }}}
|
||||||
finally
|
finally
|
||||||
" Restore original lines
|
" Restore original lines
|
||||||
|
@ -28,6 +28,7 @@ set cpo&vim
|
|||||||
\ , 'smartcase' : 0
|
\ , 'smartcase' : 0
|
||||||
\ , 'skipfoldedline' : 1
|
\ , 'skipfoldedline' : 1
|
||||||
\ , 'use_migemo' : 0
|
\ , 'use_migemo' : 0
|
||||||
|
\ , 'use_upper' : 0
|
||||||
\
|
\
|
||||||
\ , 'hl_group_target' : 'EasyMotionTarget'
|
\ , 'hl_group_target' : 'EasyMotionTarget'
|
||||||
\ , 'hl2_first_group_target' : 'EasyMotionTarget2First'
|
\ , 'hl2_first_group_target' : 'EasyMotionTarget2First'
|
||||||
|
Loading…
Reference in New Issue
Block a user