vim-paste-easy clash with delimitMate
When I paste the following passage
[branch "a"]
remote = origin
merge = refs/heads/a
It is actually like this
[branch "a"]
remote = origin
merge = refs/heads/a]
No problem using delimitMate alone
I was curious about this one so tried to reproduce but it doesn't seem to happen with a default configuration. Are you still able to reproduce this? Have you got any variables set for vim-paste-easy or delimitMate? What version of vim are you running and does this only happen for certain file extensions?
vim: 8.0: 1-1475
I test it in a mini vimrc, it can be reproduce.
reproduce way:
1: vim -u test_vimrc git_config_test
2: copy git_config_test data by use mouse
3: press "o"
4: press middle button to paste

test_vimrc
set nocompatible
set guioptions=
set mouse=n
set runtimepath+=~/.vim/plugged/delimitMate
set runtimepath+=~/.vim/plugged/vim-paste-easy
filetype plugin indent on
syntax enable
git_config_test
[branch "a"]
remote = origin
merge = refs/heads/a
Thanks for the info. Looks like this doesn't affect more recent versions of vim. I'm using vim 8.0 1-1531 and it doesn't happen. However, with your info above I was able to recreate this in a docker image using an older version. Below is the output from both versions of vim. You'll notice in the older version TextChangedI results in a call to delimitMate but not in the more recent version. It seems something has changed recently with the TextChangedI behaviour. The good news is this issue should go away when you next upgrade vim. You can check the problem matches what I have observed using the following commands:
:set verbosefile=verbose.txt
:set verbose=12
Older version of vim
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>11_Highlight_Matching_Pair
function <SNR>11_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>11_Highlight_Matching_Pair
function <SNR>11_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
-- INSERT --
Executing CursorMovedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>11_Highlight_Matching_Pair
function <SNR>11_Highlight_Matching_Pair returning #0
continuing in CursorMovedI Auto commands for "*"
Executing TextChangedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>11_Highlight_Matching_Pair
function <SNR>11_Highlight_Matching_Pair returning #0
continuing in TextChangedI Auto commands for "*"
calling function <SNR>19_TriggerAbb
function <SNR>19_TriggerAbb returning '^]'
calling function delimitMate#ParenDelim
...
vim 8 1-1531
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>13_Highlight_Matching_Pair
function <SNR>13_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>13_Highlight_Matching_Pair
function <SNR>13_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
-- INSERT --
Executing CursorMovedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>13_Highlight_Matching_Pair
function <SNR>13_Highlight_Matching_Pair returning #0
continuing in CursorMovedI Auto commands for "*"
Executing TextChangedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>13_Highlight_Matching_Pair
function <SNR>13_Highlight_Matching_Pair returning #0
continuing in TextChangedI Auto commands for "*"
Executing CursorMovedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
...
I build vim 8 1-1531, but it has problem also, thereis something wrong about my build options?
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 27 2018 11:04:19)
Included patches: 1-1531
Compiled by fcying
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_sgr -tag_any_white
+arabic +file_in_path -mouse_sysmouse -tcl
+autocmd +find_in_path +mouse_urxvt +termguicolors
-autoservername +float +mouse_xterm +terminal
-balloon_eval +folding +multi_byte +terminfo
+balloon_eval_term -footer +multi_lang +termresponse
-browse +fork() -mzscheme +textobjects
++builtin_terms +gettext +netbeans_intg +timers
+byte_offset -hangul_input +num64 +title
+channel +iconv +packages -toolbar
+cindent +insert_expand +path_extra +user_commands
-clientserver +job +perl/dyn +vertsplit
-clipboard +jumplist +persistent_undo +virtualedit
+cmdline_compl +keymap +postscript +visual
+cmdline_hist +lambda +printer +visualextra
+cmdline_info +langmap +profile +viminfo
+comments +libcall +python/dyn +vreplace
+conceal +linebreak +python3/dyn +wildignore
+cryptv +lispindent +quickfix +wildmenu
+cscope +listcmds +reltime +windows
+cursorbind +localmap +rightleft +writebackup
+cursorshape +lua/dyn +ruby/dyn -X11
+dialog_con +menu +scrollbind -xfontset
+diff +mksession +signs -xim
+digraphs +modify_fname +smartindent -xpm
-dnd +mouse +startuptime -xsmp
-ebcdic -mouseshape +statusline -xterm_clipboard
+emacs_tags +mouse_dec -sun_workshop -xterm_save
+eval -mouse_gpm +syntax
+ex_extra -mouse_jsbterm +tag_binary
+extra_search +mouse_netterm +tag_old_static
verbase.txt
function <SNR>13_VimEnter returning #0
continuing in VimEnter Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
Executing TextChanged Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in TextChanged Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
-- INSERT --
Executing CursorMovedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMovedI Auto commands for "*"
Executing TextChangedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in TextChangedI Auto commands for "*"
-- INSERT --
calling function <SNR>20_TriggerAbb
function <SNR>20_TriggerAbb returning '^]'
calling function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[1]..<SNR>21_get
function delimitMate#ParenDelim[1]..<SNR>21_get returning ['(', '{', '[']
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[1]..<SNR>21_get
function delimitMate#ParenDelim[1]..<SNR>21_get returning [')', '}', ']']
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[1]..<SNR>21_is_excluded_ft
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[1]..<SNR>21_is_excluded_ft returning #0
continuing in function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[4]..<SNR>21_get
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[4]..<SNR>21_get returning #1
continuing in function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[7]..<SNR>21_get_syn_name
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[7]..<SNR>21_get_syn_name returning ''
continuing in function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[8]..<SNR>21_get
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[8]..<SNR>21_get returning ['Comment']
continuing in function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden returning #0
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[6]..<SNR>21_get
function delimitMate#ParenDelim[6]..<SNR>21_get returning #0
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[12]..<SNR>21_get
function delimitMate#ParenDelim[12]..<SNR>21_get returning '^\%(\w\|\!\|[£$]\|[^[:punct:][:space:]]\)'
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[13]..<SNR>21_get
function delimitMate#ParenDelim[13]..<SNR>21_get returning '^\%(\w\|\!\|[£$]\|[^[:punct:][:space:]]\)'
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[19]..<SNR>21_get
function delimitMate#ParenDelim[19]..<SNR>21_get returning #1
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[20]..<SNR>21_get
function delimitMate#ParenDelim[20]..<SNR>21_get returning ''
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[24]..<SNR>21_joinUndo
function delimitMate#ParenDelim[24]..<SNR>21_joinUndo returning '^GU'
continuing in function delimitMate#ParenDelim
function delimitMate#ParenDelim returning '[]^GU<80>kl'
Executing InsertCharPre Auto commands for "*"
autocommand call <sid>char_inserted()
calling function <SNR>22_char_inserted
function <SNR>22_char_inserted returning #0
continuing in InsertCharPre Auto commands for "*"
Executing InsertCharPre Auto commands for "*"
autocommand call <sid>char_inserted()
calling function <SNR>22_char_inserted
calling function <SNR>22_char_inserted[16]..<SNR>22_start_easy_paste
function <SNR>22_char_inserted[16]..<SNR>22_start_easy_paste returning #0
continuing in function <SNR>22_char_inserted
function <SNR>22_char_inserted returning #0
continuing in InsertCharPre Auto commands for "*"
Executing CursorMovedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMovedI Auto commands for "*"
Executing TextChangedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in TextChangedI Auto commands for "*"
-- INSERT (paste) --
calling function <SNR>22_on_timer
function <SNR>22_on_timer returning #0
calling function <SNR>22_on_timer
function <SNR>22_on_timer returning #0
calling function <SNR>22_on_timer
calling function <SNR>22_on_timer[11]..<SNR>22_stop_easy_paste
paste-easy end
function <SNR>22_on_timer[11]..<SNR>22_stop_easy_paste returning #0
continuing in function <SNR>22_on_timer
function <SNR>22_on_timer returning #0
-- INSERT --
Executing InsertLeave Auto commands for "*"
autocommand call <sid>stop_easy_paste()
calling function <SNR>22_stop_easy_paste
function <SNR>22_stop_easy_paste returning #0
continuing in InsertLeave Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
Here's mine. The clipboard options are different but I don't think that should make a difference.
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 23 2018 15:54:50)
Included patches: 1-1531
Compiled by Arch Linux
Huge version with GTK3 GUI. Features included (+) or not (-):
+acl +farsi +mouse_sgr -tag_any_white
+arabic +file_in_path -mouse_sysmouse +tcl/dyn
+autocmd +find_in_path +mouse_urxvt +termguicolors
-autoservername +float +mouse_xterm +terminal
+balloon_eval +folding +multi_byte +terminfo
+balloon_eval_term -footer +multi_lang +termresponse
+browse +fork() -mzscheme +textobjects
++builtin_terms +gettext +netbeans_intg +timers
+byte_offset -hangul_input +num64 +title
+channel +iconv +packages +toolbar
+cindent +insert_expand +path_extra +user_commands
+clientserver +job +perl/dyn +vertsplit
+clipboard +jumplist +persistent_undo +virtualedit
+cmdline_compl +keymap +postscript +visual
+cmdline_hist +lambda +printer +visualextra
+cmdline_info +langmap +profile +viminfo
+comments +libcall +python/dyn +vreplace
+conceal +linebreak +python3/dyn +wildignore
+cryptv +lispindent +quickfix +wildmenu
+cscope +listcmds +reltime +windows
+cursorbind +localmap +rightleft +writebackup
+cursorshape +lua/dyn +ruby/dyn +X11
+dialog_con_gui +menu +scrollbind -xfontset
+diff +mksession +signs +xim
+digraphs +modify_fname +smartindent -xpm
+dnd +mouse +startuptime +xsmp_interact
-ebcdic +mouseshape +statusline +xterm_clipboard
+emacs_tags +mouse_dec -sun_workshop -xterm_save
+eval +mouse_gpm +syntax
+ex_extra -mouse_jsbterm +tag_binary
+extra_search +mouse_netterm +tag_old_static
This is the version running in the current docker container image. I can't reproduce the issue with this version either.
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 20 2018 17:29:29)
Included patches: 1-1527
Modified by <[email protected]>
Compiled by <[email protected]>
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_sgr -tag_any_white
+arabic +file_in_path -mouse_sysmouse -tcl
+autocmd +find_in_path +mouse_urxvt +termguicolors
-autoservername +float +mouse_xterm +terminal
-balloon_eval +folding +multi_byte +terminfo
+balloon_eval_term -footer +multi_lang +termresponse
-browse +fork() -mzscheme +textobjects
++builtin_terms +gettext +netbeans_intg +timers
+byte_offset -hangul_input +num64 +title
+channel +iconv +packages -toolbar
+cindent +insert_expand +path_extra +user_commands
-clientserver +job +perl/dyn +vertsplit
-clipboard +jumplist +persistent_undo +virtualedit
+cmdline_compl +keymap +postscript +visual
+cmdline_hist +lambda +printer +visualextra
+cmdline_info +langmap +profile +viminfo
+comments +libcall +python/dyn +vreplace
+conceal +linebreak +python3/dyn +wildignore
+cryptv +lispindent +quickfix +wildmenu
+cscope +listcmds +reltime +windows
+cursorbind +localmap +rightleft +writebackup
+cursorshape +lua/dyn +ruby/dyn -X11
+dialog_con +menu +scrollbind -xfontset
+diff +mksession +signs -xim
+digraphs +modify_fname +smartindent -xpm
-dnd +mouse +startuptime -xsmp
-ebcdic -mouseshape +statusline -xterm_clipboard
+emacs_tags +mouse_dec -sun_workshop -xterm_save
+eval +mouse_gpm +syntax
+ex_extra -mouse_jsbterm +tag_binary
+extra_search +mouse_netterm +tag_old_static
The only difference between the fedora one and yours is mouse_gpm.
I test the version Compiled by [email protected], It has mouse_gpm, but it can't work fine also.
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 26 2018 10:38:24)
Included patches: 1-1542
Modified by [email protected]
Compiled by [email protected]
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_sgr -tag_any_white
+arabic +file_in_path -mouse_sysmouse -tcl
+autocmd +find_in_path +mouse_urxvt +termguicolors
-autoservername +float +mouse_xterm +terminal
-balloon_eval +folding +multi_byte +terminfo
+balloon_eval_term -footer +multi_lang +termresponse
-browse +fork() -mzscheme +textobjects
++builtin_terms +gettext +netbeans_intg +timers
+byte_offset -hangul_input +num64 +title
+channel +iconv +packages -toolbar
+cindent +insert_expand +path_extra +user_commands
-clientserver +job -perl +vertsplit
-clipboard +jumplist +persistent_undo +virtualedit
+cmdline_compl +keymap +postscript +visual
+cmdline_hist +lambda +printer +visualextra
+cmdline_info +langmap +profile +viminfo
+comments +libcall -python +vreplace
+conceal +linebreak +python3 +wildignore
+cryptv +lispindent +quickfix +wildmenu
+cscope +listcmds +reltime +windows
+cursorbind +localmap +rightleft +writebackup
+cursorshape -lua -ruby -X11
+dialog_con +menu +scrollbind -xfontset
+diff +mksession +signs -xim
+digraphs +modify_fname +smartindent -xpm
-dnd +mouse +startuptime -xsmp
-ebcdic -mouseshape +statusline -xterm_clipboard
+emacs_tags +mouse_dec -sun_workshop -xterm_save
+eval +mouse_gpm +syntax
+ex_extra -mouse_jsbterm +tag_binary
+extra_search +mouse_netterm +tag_old_static
verbose.txt
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
Executing TextChanged Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in TextChanged Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
-- INSERT --
Executing CursorMovedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMovedI Auto commands for "*"
Executing TextChangedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in TextChangedI Auto commands for "*"
-- INSERT --
calling function <SNR>20_TriggerAbb
function <SNR>20_TriggerAbb returning '^]'
calling function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[1]..<SNR>21_get
function delimitMate#ParenDelim[1]..<SNR>21_get returning ['(', '{', '[']
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[1]..<SNR>21_get
function delimitMate#ParenDelim[1]..<SNR>21_get returning [')', '}', ']']
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[1]..<SNR>21_is_excluded_ft
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[1]..<SNR>21_is_excluded_ft returning #0
continuing in function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[4]..<SNR>21_get
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[4]..<SNR>21_get returning #1
continuing in function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[7]..<SNR>21_get_syn_name
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[7]..<SNR>21_get_syn_name returning ''
continuing in function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
calling function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[8]..<SNR>21_get
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden[8]..<SNR>21_get returning ['Comment']
continuing in function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden
function delimitMate#ParenDelim[2]..<SNR>21_is_forbidden returning #0
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[6]..<SNR>21_get
function delimitMate#ParenDelim[6]..<SNR>21_get returning #0
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[12]..<SNR>21_get
function delimitMate#ParenDelim[12]..<SNR>21_get returning '^\%(\w\|\!\|[£$]\|[^[:punct:][:space:]]\)'
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[13]..<SNR>21_get
function delimitMate#ParenDelim[13]..<SNR>21_get returning '^\%(\w\|\!\|[£$]\|[^[:punct:][:space:]]\)'
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[19]..<SNR>21_get
function delimitMate#ParenDelim[19]..<SNR>21_get returning #1
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[20]..<SNR>21_get
function delimitMate#ParenDelim[20]..<SNR>21_get returning ''
continuing in function delimitMate#ParenDelim
calling function delimitMate#ParenDelim[24]..<SNR>21_joinUndo
function delimitMate#ParenDelim[24]..<SNR>21_joinUndo returning '^GU'
continuing in function delimitMate#ParenDelim
function delimitMate#ParenDelim returning '[]^GU~@kl'
Executing InsertCharPre Auto commands for "*"
autocommand call <sid>char_inserted()
calling function <SNR>22_char_inserted
function <SNR>22_char_inserted returning #0
continuing in InsertCharPre Auto commands for "*"
Executing InsertCharPre Auto commands for "*"
autocommand call <sid>char_inserted()
calling function <SNR>22_char_inserted
calling function <SNR>22_char_inserted[16]..<SNR>22_start_easy_paste
function <SNR>22_char_inserted[16]..<SNR>22_start_easy_paste returning #0
continuing in function <SNR>22_char_inserted
function <SNR>22_char_inserted returning #0
continuing in InsertCharPre Auto commands for "*"
Executing CursorMovedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMovedI Auto commands for "*"
Executing TextChangedI Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in TextChangedI Auto commands for "*"
-- INSERT (paste) --
calling function <SNR>22_on_timer
function <SNR>22_on_timer returning #0
calling function <SNR>22_on_timer
function <SNR>22_on_timer returning #0
calling function <SNR>22_on_timer
calling function <SNR>22_on_timer[11]..<SNR>22_stop_easy_paste
paste-easy end
function <SNR>22_on_timer[11]..<SNR>22_stop_easy_paste returning #0
continuing in function <SNR>22_on_timer
function <SNR>22_on_timer returning #0
-- INSERT --
Executing InsertLeave Auto commands for "*"
autocommand call <sid>stop_easy_paste()
calling function <SNR>22_stop_easy_paste
function <SNR>22_stop_easy_paste returning #0
continuing in InsertLeave Auto commands for "*"
Executing CursorMoved Auto commands for "*"
autocommand call s:Highlight_Matching_Pair()
calling function <SNR>12_Highlight_Matching_Pair
function <SNR>12_Highlight_Matching_Pair returning #0
continuing in CursorMoved Auto commands for "*"
I'm encountering the same kind of behaviour with tmsvg/pear-tree under Vim 8.1.
If I type an opener and a closer together in under a second (eg. function_with_no_arguments() or result_accumulator = []), then vim-paste-easy prevents pear-tree from allowing me to overtype the closer it inserted and I wind up with a doubled closer.
The problem occurs in both console Vim and gVim and I'm currently using the 8.1.2231-0york0~16.04 build from Jonathon F's Vim PPA on Kubuntu Linux 16.04 LTS.
I've also opened tmsvg/pear-tree#38 to at least get it mentioned in pear-tree's README since, until I forced myself to bisect my set of enabled plugins to do due diligence, I was oh so certain that it was a bug in pear-tree.
I have the same problem with auto-pairs .