Skip to content

Commit

Permalink
use oclip replace lemonade
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Aug 28, 2019
1 parent 3031ea8 commit 5450a86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions etc/tmux.conf
Expand Up @@ -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
Expand Down Expand Up @@ -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

6 changes: 3 additions & 3 deletions etc/vimrc.vim
Expand Up @@ -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',
\}
"}

Expand Down

0 comments on commit 5450a86

Please sign in to comment.