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:
haya14busa 2013-12-21 01:03:25 +09:00
parent ab391daf44
commit dfbc3415a0
2 changed files with 4 additions and 0 deletions

View File

@ -745,6 +745,9 @@ endfunction "}}}
call s:Prompt('Target key')
let char = s:GetChar()
if g:EasyMotion_use_upper == 1 && match(g:EasyMotion_keys, '\l') == -1
let char = toupper(char)
endif
" }}}
finally
" Restore original lines

View File

@ -28,6 +28,7 @@ set cpo&vim
\ , 'smartcase' : 0
\ , 'skipfoldedline' : 1
\ , 'use_migemo' : 0
\ , 'use_upper' : 0
\
\ , 'hl_group_target' : 'EasyMotionTarget'
\ , 'hl2_first_group_target' : 'EasyMotionTarget2First'