mirror of
https://github.com/gryf/vmstrap.git
synced 2025-12-18 20:10:28 +01:00
Make vim like copy/selection for tmux system depended
This commit is contained in:
@@ -95,7 +95,3 @@ bind-key + resize-pane -U 3
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
# v and y like vi in copy-mode
|
||||
#bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||
#bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||||
bind -t vi-copy 'v' begin-selection
|
||||
bind -t vi-copy 'y' copy-selection
|
||||
|
||||
@@ -83,9 +83,12 @@ for pkg in remote_pdb pdbpp; do
|
||||
done
|
||||
|
||||
# 7. copy configuration for bash, git, tmux
|
||||
sudo cp .bash_prompt ~/
|
||||
sudo cp .tmux.conf ~/
|
||||
sudo cp .gitconfig ~/
|
||||
cp .bash_prompt ~/
|
||||
cp .tmux.conf ~/
|
||||
# v and y like vi in copy-mode
|
||||
echo "bind -t vi-copy 'v' begin-selection" >> ~/.tmux.conf
|
||||
echo "bind -t vi-copy 'y' copy-selection" >> ~/.tmux.conf
|
||||
cp .gitconfig ~/
|
||||
echo '. ~/.bash_prompt' >> ~/.bashrc
|
||||
|
||||
# 8. get my vim config
|
||||
|
||||
@@ -57,9 +57,12 @@ sudo pip install pip --upgrade
|
||||
sudo pip install remote_pdb rainbow
|
||||
|
||||
# 6. copy configuration for bash, git, tmux
|
||||
sudo cp .bash_prompt ~/
|
||||
sudo cp .tmux.conf ~/
|
||||
sudo cp .gitconfig ~/
|
||||
cp .bash_prompt ~/
|
||||
cp .tmux.conf ~/
|
||||
# v and y like vi in copy-mode
|
||||
echo "bind-key -T copy-mode-vi 'v' send -X begin-selection" >> ~/.tmux.conf
|
||||
echo "bind-key -T copy-mode-vi 'y' send -X copy-selection" >> ~/.tmux.conf
|
||||
cp .gitconfig ~/
|
||||
echo '. ~/.bash_prompt' >> ~/.bashrc
|
||||
|
||||
# 7. get my vim config
|
||||
|
||||
Reference in New Issue
Block a user