Hi,

I'm having problems with Vim, when pasting with mouse
foo}

I mean any string ended by '}'.
When I post that, <esc> doesn't allow me to end insert mode, instead of it 
prints ascii escape sequence ^[
And that Vim needs to be killed with sigkill.

This is not reproducible with 
vim -N -u NONE

I've found this works with my ~/.vimrc containing:                              
                                                                                
                                                                                
                                              
set showmatch
set vb

Below is complete :version output

:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 27 2018 02:08:08)
Included patches: 1-1766
Modified by [email protected]
Compiled by [email protected]
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl               +clientserver      +dialog_con_gui    +find_in_path      
+keymap            +modify_fname      +multi_byte        +profile           
+statusline        +textobjects       +wildignore
+arabic            +clipboard         +diff              +float             
+lambda            +mouse             +multi_lang        -python            
-sun_workshop      +timers            +wildmenu
+autocmd           +cmdline_compl     +digraphs          +folding           
+langmap           +mouseshape        -mzscheme          +python3           
+syntax            +title             +windows
-autoservername    +cmdline_hist      +dnd               -footer            
+libcall           +mouse_dec         +netbeans_intg     +quickfix          
+tag_binary        +toolbar           +writebackup
+balloon_eval      +cmdline_info      -ebcdic            +fork()            
+linebreak         +mouse_gpm         +num64             +reltime           
+tag_old_static    +user_commands     +X11
+balloon_eval_term +comments          +emacs_tags        +gettext           
+lispindent        -mouse_jsbterm     +packages          +rightleft         
-tag_any_white     +vertsplit         -xfontset
+browse            +conceal           +eval              -hangul_input      
+listcmds          +mouse_netterm     +path_extra        +ruby              
+tcl               +virtualedit       +xim
++builtin_terms    +cryptv            +ex_extra          +iconv             
+localmap          +mouse_sgr         +perl              +scrollbind        
+termguicolors     +visual            +xpm
+byte_offset       +cscope            +extra_search      +insert_expand     
+lua               -mouse_sysmouse    +persistent_undo   +signs             
+terminal          +visualextra       +xsmp_interact
+channel           +cursorbind        +farsi             +job               
+menu              +mouse_urxvt       +postscript        +smartindent       
+terminfo          +viminfo           +xterm_clipboard
+cindent           +cursorshape       +file_in_path      +jumplist          
+mksession         +mouse_xterm       +printer           +startuptime       
+termresponse      +vreplace          -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread 
-I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include 
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 
-I/usr/include/atk-1.0 -
I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/includ
e -I/usr/include/fribidi -I/usr/include/uuid -I/usr/include/freetype2 
-I/usr/include/libpng16 -Wdate-time  -g -O2 
-fdebug-prefix-map=/build/vim-0PaOCf/vim-8.0.1766=. -fstack-protector-strong 
-Wformat -Werror=format-security -U_FORTIFY_SOUR
CE -D_FORTIFY_SOURCE=1
Linking: gcc   -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic 
-Wl,-export-dynamic -Wl,-E  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   
-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 
-lgio-2.0 -
lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfribidi -lfontconfig 
-lfreetype -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  
-lselinux  -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  
-fstack-protector-stron
g -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.26/CORE -lperl -ldl -lm 
-lpthread -lcrypt  -L/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu 
-lpython3.6m -lpthread -ldl -lutil -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 
-ldl -lz -lpthr
ead -lm -lruby-2.5 -lpthread -lgmp -ldl -lcrypt -lm

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui