From 278028761c883b16ae1e742d3fb590b295afa8cf Mon Sep 17 00:00:00 2001 From: haya14busa Date: Thu, 20 Feb 2014 06:29:39 +0900 Subject: [PATCH] Improve by vimlint --- autoload/EasyMotion.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/autoload/EasyMotion.vim b/autoload/EasyMotion.vim index 0af1abf..f902c64 100644 --- a/autoload/EasyMotion.vim +++ b/autoload/EasyMotion.vim @@ -3,7 +3,7 @@ " Author: Kim Silkebækken " haya14busa " Source: https://github.com/Lokaltog/vim-easymotion -" Last Change: 19 Feb 2014. +" Last Change: 20 Feb 2014. "============================================================================= " Saving 'cpoptions' {{{ scriptencoding utf-8 @@ -756,7 +756,7 @@ endfunction "}}} function! s:GroupingAlgorithmOriginal(targets, keys) " Split targets into groups (1 level) let targets_len = len(a:targets) - let keys_len = len(a:keys) + " let keys_len = len(a:keys) let groups = {} @@ -882,9 +882,9 @@ function! s:PromptUser(groups) "{{{ let target_line_byte_len = strlen(lines[line_num]['marker']) - let target_char_byte_len = strlen(matchstr( - \ lines[line_num]['marker'], - \ '\%' . col_num . 'c.')) + " let target_char_byte_len = strlen(matchstr( + " \ lines[line_num]['marker'], + " \ '\%' . col_num . 'c.')) if strlen(lines[line_num]['marker']) > 0 " Substitute marker character if line length > 0 @@ -1234,7 +1234,7 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive) " {{{ elseif a:direction == 0 " Forward let shade_hl_re = '\%#\_.*\%'. win_last_line .'l' - elseif a:direction == 2 + else " Both directions" let shade_hl_re = '\_.*' endif