From dfbc3415a06871a226479127c9c074ebb2151542 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Sat, 21 Dec 2013 01:03:25 +0900 Subject: [PATCH] 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 --- autoload/EasyMotion.vim | 3 +++ plugin/EasyMotion.vim | 1 + 2 files changed, 4 insertions(+) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index ea78b63..a9f0b7d 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -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 diff --git a/plugin/EasyMotion.vim b/plugin/EasyMotion.vim index a584a7a..3e38eb8 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -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'