···7070bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
7171bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"
7272unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode after dragging with mouse
7373+7474+# Bindkey "<Prefix> \" to edit buffer in a new nvim session
7575+bind-key -N "Edit buffer in a new nvim session" \\ {
7676+ capture-pane -S -
7777+ save-buffer /tmp/tmux_buffer_tmp
7878+ delete-buffer
7979+ split-window
8080+ send-keys 'nvim /tmp/tmux_buffer_tmp' Enter
8181+}
8282+7383#map another shortcut to clear window as c-l is now taken for navigation: now `ctrl+t and b`
7484bind b send-keys 'C-l'
7585