aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Le <solnovus@gmail.com>2014-05-11 12:01:59 -0700
committerKevin Le <solnovus@gmail.com>2014-05-11 12:01:59 -0700
commitb480bf78ab015118d59409f3931a637548d0c244 (patch)
tree5062e65d415e7c6a6a63aee3183b476b416326cc
parentee138dc25f9b826af8b64fb17886fdf27a9267e9 (diff)
parent3168dbbda57ef2bfc9a249b43765e4e0ce1a8a7b (diff)
Merge pull request #16 from Shougo/master
Add <silent> for mappings
-rw-r--r--plugin/camelcasemotion.vim4
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