From f8078d6939c8922714d3a0c6e3a6ae38ace37cc4 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 5307c85..757b5e9 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -699,6 +699,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 8d9f6f3..e4af4ac 100644 --- a/plugin/EasyMotion.vim +++ b/plugin/EasyMotion.vim @@ -26,6 +26,7 @@ set cpo&vim \ , 'smartcase' : 0 \ , 'skipfoldedline' : 1 \ , 'use_migemo' : 0 + \ , 'use_upper' : 0 \ \ , 'hl_group_target' : 'EasyMotionTarget' \ , 'hl2_first_group_target' : 'EasyMotionTarget2First'