30 lines
899 B
Bash
30 lines
899 B
Bash
|
wget --directory-prefix=../.vim/autoload https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||
|
cp -f .vimrc ~/.vimrc
|
||
|
|
||
|
sudo apt install tmux
|
||
|
|
||
|
cat > ~/.tmux.conf <<EOF
|
||
|
set-option -g mouse on
|
||
|
set-option escape-time 0
|
||
|
set -g prefix2 C-a #Set prefix to also Ctrl+A
|
||
|
|
||
|
# make scrolling with wheels work
|
||
|
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
|
||
|
bind -n WheelDownPane select-pane -t= \; send-keys -M
|
||
|
|
||
|
bind v split-window -v
|
||
|
bind s split-window -h
|
||
|
bind r source-file ~/.tmux.conf # Bind reload to R
|
||
|
|
||
|
# switch panes using <prefix> (hjkl) vim style keys
|
||
|
bind h select-pane -L
|
||
|
bind l select-pane -R
|
||
|
bind j select-pane -U
|
||
|
bind k select-pane -D
|
||
|
|
||
|
bind -n M-Left resize-pane -L 10
|
||
|
bind -n M-Right resize-pane -R 10
|
||
|
bind -n M-Up resize-pane -U 10
|
||
|
bind -n M-Down resize-pane -D 10
|
||
|
EOF
|