Last active
June 27, 2024 14:07
-
-
Save niun/c7fd6abb5c0d5e847890 to your computer and use it in GitHub Desktop.
mouse and colors for tmux and vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file for tmux >= 2.1 | |
# .tmux.conf gets automatically read if in user directory (~) | |
# use 256 colour terminal: | |
set -g default-terminal "screen-256color" | |
# enable mouse: | |
set -g mouse on | |
# Not needed in tmux 2.8? | |
# 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 | |
# pane movement | |
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" | |
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" minimal ~/.vimrc (windows: ~/_vimrc) | |
" for mouse usage, syntax highlighting and 256 colors | |
" source the default vim configuration | |
" before changing some things: | |
source $VIMRUNTIME/defaults.vim | |
syntax on | |
" enable mouse in console / tmux: | |
set ttymouse=xterm2 | |
set mouse=a | |
" file encoding | |
set encoding=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=ucs-bom,utf-8,default,latin1 | |
" colors | |
set t_Co=256 | |
set background=dark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file for tmux 1.9 | |
# tmux -f tmux-1.9.conf | |
set-window-option -g mode-mouse on | |
set-option -g mode-mouse on | |
set-option -g mouse-select-pane on | |
set-option -g mouse-resize-pane on | |
# pane movement | |
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" | |
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment