clear the nmap before creating our bindings
[notmuch] / vim / plugin / notmuch.vim
index 09df1ed9aea3e5ca8a15d6aba755e1264482a662..d3b11ba63ea8f6c6c98fb8345d1286b9f76c2391 100644 (file)
@@ -743,6 +743,7 @@ endif
 " --- assign keymaps {{{1
 
 function! s:NM_set_map(maps)
 " --- assign keymaps {{{1
 
 function! s:NM_set_map(maps)
+        nmapclear
         for [key, code] in items(a:maps)
                 exec printf('nnoremap <buffer> %s %s', key, code)
         endfor
         for [key, code] in items(a:maps)
                 exec printf('nnoremap <buffer> %s %s', key, code)
         endfor