X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vimrc;h=49702499dac2c1078a8f7ec7776b7e819ed4ffe1;hb=c8f8601079ca6cda5d54716ba3f50d078dd3fcfb;hp=fae0e9f94bc1757db4fc29f6d39fd32c302f265c;hpb=0addb50cbc67c7f01d0c34cd77eef7f135ff9c68;p=dotfiles.git diff --git a/.vimrc b/.vimrc index fae0e9f..4970249 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") @@ -875,5 +856,7 @@ if v:version >= 800 call timer_start(500, 'SetLazyRedraw') endif +autocmd VimLeave * call writefile([getcwd()], expand('~/tmp/vim/cwd')) + " This has to go to the very end of ~/.vimrc to allow reading the .vimrc set secure " safer working with script files in the current directory