Re: [tmux-users] how to set this key-bind

2012-08-17 Thread vinurs
I found this, https://gist.github.com/1769870 It's useful for me,the following is configuration: # Remove the default binding for copy-selection unbind -t emacs-copy M-w # Bind a different key to copy-selection bind -t emacs-copy c copy-selection # Bind prefix-M-w to copy-selection, save selecti

Re: [tmux-users] how to set this key-bind

2012-08-17 Thread vinurs
Sorry for my poor explaining! I means that to modiy the emacs-copy mode table's key bind, so that when I copy something It can copy into system clipborad automatically! bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" this key-bind can copy the things i copyed in emacs-copy mode to syst

Re: [tmux-users] how to set this key-bind

2012-08-17 Thread Robin Lee Powell
I haven't actually read what you said in detail, but: For myself, I discovered that trying to make complicated binds with multiple steps involving the paste buffer just didn't work. So instead I put everything in a script: bind w run-shell "~/bin/ws_trim_wrap ' '" - --- #!/

how to set this key-bind

2012-08-17 Thread vinurs
Hi,all In my .tmux.conf, there is the following configuration: bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" bind -n C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" now, I want in emacs-copy mode,when i type M-w then It will run 'ru