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
942cce2927
commit
f8078d6939
@ -699,6 +699,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
|
||||||
|
@ -26,6 +26,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…
x
Reference in New Issue
Block a user