From 3168dbbda57ef2bfc9a249b43765e4e0ce1a8a7b Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 11 May 2014 18:36:03 +0900 Subject: Add for mappings --- plugin/camelcasemotion.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/camelcasemotion.vim b/plugin/camelcasemotion.vim index b996af2..fd5e341 100644 --- a/plugin/camelcasemotion.vim +++ b/plugin/camelcasemotion.vim @@ -157,7 +157,7 @@ function! s:CreateMotionMappings() for l:mode in ['n', 'o', 'v'] for l:motion in ['w', 'b', 'e'] let l:targetMapping = 'CamelCaseMotion_' . l:motion - execute l:mode . 'noremap ' . l:targetMapping . ' :call camelcasemotion#Motion(''' . l:motion . ''',v:count1,''' . l:mode . ''')' + execute l:mode . 'noremap ' . l:targetMapping . ' :call camelcasemotion#Motion(''' . l:motion . ''',v:count1,''' . l:mode . ''')' if ! hasmapto(l:targetMapping, l:mode) execute (l:mode ==# 'v' ? 'x' : l:mode) . 'map ,' . l:motion . ' ' . l:targetMapping endif @@ -187,7 +187,7 @@ function! s:CreateInnerMotionMappings() for l:mode in ['o', 'v'] for l:motion in ['w', 'b', 'e'] let l:targetMapping = 'CamelCaseMotion_i' . l:motion - execute l:mode . 'noremap ' . l:targetMapping . ' :call camelcasemotion#InnerMotion(''' . l:motion . ''',v:count1)' + execute l:mode . 'noremap ' . l:targetMapping . ' :call camelcasemotion#InnerMotion(''' . l:motion . ''',v:count1)' if ! hasmapto(l:targetMapping, l:mode) execute (l:mode ==# 'v' ? 'x' : l:mode) . 'map i,' . l:motion . ' ' . l:targetMapping endif -- cgit v1.1