From 1ca16755446b21af55d9d677a7a71dd82f215a64 Mon Sep 17 00:00:00 2001 From: Chayoung You Date: Mon, 15 Jan 2024 07:51:40 +0000 Subject: [PATCH] tmux.conf, vimrc: add support for OSC52 --- tmux.conf | 2 ++ vimrc | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/tmux.conf b/tmux.conf index 347a134..e04fd49 100644 --- a/tmux.conf +++ b/tmux.conf @@ -20,6 +20,8 @@ set-option -g allow-rename on # Mac OS X fix for pbcopy, pbpaste and launchctl if-shell 'command -v reattach-to-user-namespace >/dev/null' \ 'set-option -g default-command "reattach-to-user-namespace -l $SHELL"' +# https://github.com/tmux/tmux/wiki/Clipboard +set-option -s set-clipboard on # Bindings # Default prefix diff --git a/vimrc b/vimrc index 6bbd810..197e6b6 100644 --- a/vimrc +++ b/vimrc @@ -128,6 +128,8 @@ endif Plug 'will133/vim-dirdiff' " Vim: file and hunk folding support for diff/patch files. Plug 'sgeb/vim-diff-fold' +" A Vim plugin to copy text through SSH with OSC52 +Plug 'ojroques/vim-oscyank' " A Vim plugin that manages your tag files if executable('ctags') || executable('cscope') if v:version >= 800 @@ -1296,6 +1298,9 @@ endif " FixCursorHold.nvim let g:cursorhold_updatetime = 100 +" vim-oscyank +vmap y OSCYankVisual + " vim-gutentags function! s:BuildTagsFileListCmd(prog) let filetypes = [