From 1806b1b40739894ee18bef2c071487274cbab3b7 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 28 Feb 2020 14:21:36 +0100 Subject: Small fixes and adoptions for python[23] --- vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index cc4cae8..058a66b 100644 --- a/vimrc +++ b/vimrc @@ -9,7 +9,9 @@ set ttyfast | " improves speed for terminal vim (incompatible with nvim) set nottybuiltin | " use external termcaps set restorescreen | " restores the console after exiting vim (intentionally not in nvim) -autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") +" autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") +" autocmd VimLeave * call system("xsel -ib", getreg('+')) +autocmd VimLeave * call system('echo ' . shellescape(getreg('+')) . ' | xclip -selection clipboard') " scripts from the default vim installation, which do not get loaded by default, but are useful. -- cgit v1.2.3