From 5450a8644ec86c652e060d8dee65fb125e0f7072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Thu, 29 Aug 2019 00:26:18 +0800 Subject: [PATCH] use oclip replace lemonade --- etc/tmux.conf | 7 +++++-- etc/vimrc.vim | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/etc/tmux.conf b/etc/tmux.conf index 5e48b0f..32d7c21 100644 --- a/etc/tmux.conf +++ b/etc/tmux.conf @@ -16,8 +16,8 @@ bind -r L resize-pane -R # 复制模式中的键盘布局 setw -g mode-keys vi bind-key -T copy-mode-vi v send-keys -X begin-selection -bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "~/.local/bin/lemonade copy" -bind-key ] run-shell "~/.local/bin/lemonade paste | tmux load-buffer -" \; paste-buffer ; +bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "~/.local/bin/oclip" +bind-key ] run-shell "~/.local/bin/oclip -o | tmux load-buffer -" \; paste-buffer ; # 支持鼠标 set -g mouse on @@ -52,6 +52,9 @@ setw -g allow-rename off setw -g automatic-rename on setw -g automatic-rename-format "#{pane_current_command}" +# 缓冲区大小 +set -g history-limit 5000 + ############ 状态栏 ############### source ~/.local/etc/tmuxline.conf diff --git a/etc/vimrc.vim b/etc/vimrc.vim index 0757c74..bc86c17 100644 --- a/etc/vimrc.vim +++ b/etc/vimrc.vim @@ -319,9 +319,9 @@ let g:mkdp_browserfunc = 'g:Open_browser' "neovim clipborad{ let g:clipboard = { - \'copy': { '+': 'lemonade copy', '*': 'lemonade copy' }, - \'paste': { '+': 'lemonade paste', '*': 'lemonade paste' }, - \'name': 'lemonade', + \'copy': { '+': 'oclip', '*': 'oclip' }, + \'paste': { '+': 'oclip -o', '*': 'oclip -o' }, + \'name': 'oclip', \} "}