aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-23 01:02:34 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-23 01:02:34 +1200
commit30c5c346363945971108896351f1142617ce3022 (patch)
tree62c61b8ec5a99e8ff42715f083cd2517d54e2130
parentAdd lots of comments (diff)
downloadvim-paste-insert-30c5c346363945971108896351f1142617ce3022.tar.gz
vim-paste-insert-30c5c346363945971108896351f1142617ce3022.zip
Catch specific mapping errors
-rw-r--r--autoload/paste_insert.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/paste_insert.vim b/autoload/paste_insert.vim
index 421c3a2..e0463a9 100644
--- a/autoload/paste_insert.vim
+++ b/autoload/paste_insert.vim
@@ -103,7 +103,7 @@ function! s:Start() abort
endif
execute 'nunmap '.key
- catch
+ catch /^Vim\%((\a\+)\)\=:E31:/ " No such mapping
" Ignore it
endtry