8000 feat(tmux): Bind v to visual selection in vim mode · musq/dotfiles@8d23b6b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 8d23b6b

Browse files
committed
feat(tmux): Bind v to visual selection in vim mode
1 parent ce0f35a commit 8d23b6b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/config/tmux/tmux.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@ if-shell \
6060
'set-option -g default-command "exec reattach-to-user-namespace -l $SHELL"'
6161

6262
# Remap the copy & paste keys to work as in vim
63-
unbind [
6463
bind Escape copy-mode
65-
unbind p
6664
bind p paste-buffer
67-
# bind-key -T copy-mode-vi v send-keys -X begin-selection
68-
# bind-key -T copy-mode-vi y send-keys -X copy-selection
65+
bind-key -T copy-mode-vi 'v' send -X begin-selection
66+
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
6967

7068
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7169

0 commit comments

Comments
 (0)
0