Thank you everyone for your helpful responses.

Initially I was trying to synchonize with keyboard shortcuts on my
Macbook (i.e., use Vim + Tmux similarly across all operating systems),
but it proved unfruitful due to complications around remapping the
Command key on MacOS. I was also trying to use mouse mode in Tmux which
was adding to my frustrations...

I am now quite happy with my setup on OpenBSD and I'll be pasting
excerpts from my CWM/Xterm/Tmux/Vim config files here:

~/.cwmrc
   bind-key 4-l     lock
   bind-key C-Left  group-rcycle
   bind-key C-Right group-cycle
   unbind-key M-Left
   unbind-key M-Right

~/.Xdefaults
   XTerm*selectToClipboard:true

~/.tmux.conf
   #set -g mouse on
   #setw -g mode-keys vi
   # Copy / Paste
   #bind-key -T copy-mode-vi C-c send-keys -X copy-pipe-and-cancel "xclip
   -selection clipboard;" # no longer needed with mouse mode disabled
   bind-key -n C-v run "xclip -out -selection clipbard | tmux load-buffer
   -; tmux paste-buffer;"
   
   # Resize Panes
   bind -n C-w resize-pane -U 5
   bind -n C-s resize-pane -D 5
   bind -n C-a resize-pane -L 5
   bind -n C-d resize-pane -R 5

~/.vimrc
   set expandtab
   set shiftwidth=4
   set tabstop=4
   syntax on

Respectfully,
David Anthony

On Mon, 2021-07-12 at 17:12 -0400, David Anthony wrote:
> Hello,
> 
> Does anyone using the combination of CWM+Xterm+Tmux+Vim have any advice
> for dealing with Copy/Paste? To/From Browser?
> 
> It feels like I'm dealing with multiple "layers" of keybindings and I'm
> curious if anyone has devised a simple unified solution.
> 
> Respectfully,
> David Anthony
> 


Reply via email to