From db1e6a6a914839afe06a26ad4f346a06d340b01d Mon Sep 17 00:00:00 2001 From: haya14busa Date: Mon, 27 Jan 2014 21:42:55 +0900 Subject: [PATCH] Find motion: Convert space to start of spaces --- autoload/EasyMotion.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index e87e1bb..687a8bb 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -1,7 +1,7 @@ " EasyMotion - Vim motions on speed! " " Author: haya14busa -" Last Change: 26 Jan 2014. +" Last Change: 27 Jan 2014. " Source: https://github.com/haya14busa/vim-easymotion " " Original Author: Kim Silkebækken @@ -595,6 +595,11 @@ function! s:convertRegep(input) "{{{ " 4. smartcase let re = s:should_use_regexp() ? a:input : escape(a:input, '.$^~\[]') + " Convert space to match only start of spaces + if re =~# '\s' + let re = '\s\+' + endif + if s:should_use_migemo(a:input) let re = s:convertMigemo(re) endif