aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc4
1 files changed, 3 insertions, 1 deletions
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)
9set nottybuiltin | " use external termcaps 9set nottybuiltin | " use external termcaps
10set restorescreen | " restores the console after exiting vim (intentionally not in nvim) 10set restorescreen | " restores the console after exiting vim (intentionally not in nvim)
11 11
12autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") 12" autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib")
13" autocmd VimLeave * call system("xsel -ib", getreg('+'))
14autocmd VimLeave * call system('echo ' . shellescape(getreg('+')) . ' | xclip -selection clipboard')
13 15
14 16
15" scripts from the default vim installation, which do not get loaded by default, but are useful. 17" scripts from the default vim installation, which do not get loaded by default, but are useful.
..