diff options
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -9,7 +9,9 @@ set ttyfast | " improves speed for terminal vim (incompatible with nvim) | |||
9 | set nottybuiltin | " use external termcaps | 9 | set nottybuiltin | " use external termcaps |
10 | set restorescreen | " restores the console after exiting vim (intentionally not in nvim) | 10 | set restorescreen | " restores the console after exiting vim (intentionally not in nvim) |
11 | 11 | ||
12 | autocmd 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('+')) | ||
14 | autocmd 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. |