From b21d57e9dcf5334ae082213f0c423a30f16f8b3f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 26 Jun 2020 03:11:20 +0300 Subject: [PATCH] .vimrc: Remove everything related to bracketed paste mode Doesn't work under GNU Screen. I now use and recommend to all https://github.com/jooize/vim-bracketed-paste plugin. --- .vimrc | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/.vimrc b/.vimrc index fae0e9f..19b6328 100644 --- a/.vimrc +++ b/.vimrc @@ -314,26 +314,7 @@ else endif endif - " Bracketed paste mode - " https://github.com/ConradIrwin/vim-bracketed-paste/blob/master/plugin/bracketed-paste.vim - let &t_ti .= "\[?2004h" - let &t_te = "\e[?2004l" . &t_te - - function! XTermPasteBegin(ret) - set pastetoggle= - set paste - return a:ret - endfunction - - execute "set =\[200~" - execute "set =\[201~" - map XTermPasteBegin("i") - imap XTermPasteBegin("") - vmap XTermPasteBegin("c") - cmap - cmap - - "https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode + " https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode " https://ttssh2.osdn.jp/manual/en/usage/tips/vim.html function! WrapForScreenTmux(s) if (&term =~ "screen") -- 2.39.5