You are not logged in.
Pages: 1
I have 3 different cut buffers.
First is system 'primary selection', which put string to buffer with Ctrl+Ins and unput with Shift+Ins. Works globally.
Second is tmux cut buffer, which works only between tmux windows.
Third is vim cut buffer, wich works only between vim windows.
This is a little bit uncomfortable. Anybody knows how to configure that all programs use the same cut buffer?
Last edited by Kirill Bugaev (2018-09-04 02:31:09)
Offline
autocutsel
Offline
jasonwryan, thanks for answer.
autocutsel merge system and vim copy/paste buffers, but tmux still have its own.
Last edited by Kirill Bugaev (2018-09-04 05:47:34)
Offline
You can adjust your tmux.conf to send it's buffer to xsel or autocutsel. And for terminological pedantism, none of these are the clipboard buffer. That's yet another one that some gui (especially toolkit based) programs use.
Last edited by Trilby (2018-09-03 23:31:32)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
You can adjust your tmux.conf to send it's buffer to xsel or autocutsel.
Thanks, i will try.
And for terminological pedantism, none of these are the clipboard buffer. That's yet another one that some gui (especially toolkit based) programs use.
Sorry, lets name it copy/paste buffers.
Offline
No need to apologize, I was noting it in case you were searching specifically for "clipboard" in web searches. For X11, you are talking about the 'primary selection'. For the other programs you list I think they all call theirs a variant of 'cut buffer'. There is/can be a "clipboard selection" under X11 - but this is something different (this is what many toolkit based programs use for Ctrl-C/Ctrl-V behavior).
Last edited by Trilby (2018-09-04 00:06:24)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
No need to apologize, I was noting it in case you were searching specifically for "clipboard" in web searches. For X11, you are talking about the 'primary selection'. For the other programs you list I think they all call theirs a variant of 'cut buffer'. There is/can be a "clipboard selection" under X11 - but this is something different (this is what many toolkit based programs use for Ctrl-C/Ctrl-V behavior).
Thanks for explanation.
I have configured tmux as described in Arch Wiki and add the following to .tmux.conf:
bind-key ] run "xsel -o | tmux load-buffer - ; tmux paste-buffer"Also have changed .vimrc config, append following:
:set clipboard=unnamedNot use autocutsel at all.
Everything works fine except one. When I yank in vim from other workplace only vim cut buffer changes and only on workplace where has been yanked.
I have changed firsit post accroding to Trilby remarks.
Last edited by Kirill Bugaev (2018-09-04 06:08:47)
Offline
Pages: 1