diff options
Diffstat (limited to 'plugin/camelcasemotion.vim')
-rw-r--r-- | plugin/camelcasemotion.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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 = '<Plug>CamelCaseMotion_' . l:motion - execute l:mode . 'noremap ' . l:targetMapping . ' :<C-U>call camelcasemotion#Motion(''' . l:motion . ''',v:count1,''' . l:mode . ''')<CR>' + execute l:mode . 'noremap <silent> ' . l:targetMapping . ' :<C-U>call camelcasemotion#Motion(''' . l:motion . ''',v:count1,''' . l:mode . ''')<CR>' if ! hasmapto(l:targetMapping, l:mode) execute (l:mode ==# 'v' ? 'x' : l:mode) . 'map <silent> ,' . 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 = '<Plug>CamelCaseMotion_i' . l:motion - execute l:mode . 'noremap ' . l:targetMapping . ' :<C-U>call camelcasemotion#InnerMotion(''' . l:motion . ''',v:count1)<CR>' + execute l:mode . 'noremap <silent> ' . l:targetMapping . ' :<C-U>call camelcasemotion#InnerMotion(''' . l:motion . ''',v:count1)<CR>' if ! hasmapto(l:targetMapping, l:mode) execute (l:mode ==# 'v' ? 'x' : l:mode) . 'map <silent> i,' . l:motion . ' ' . l:targetMapping endif |