cleaning up tmux.conf and some small additions
+ adding back in the vitality plugin + turned back on the mouse mode in tmux (for clicking between windows in tmux) + cleaning up some duplications in tmux.conf
This commit is contained in:
@@ -17,11 +17,8 @@ bind C-a send-prefix
|
|||||||
setw -g monitor-activity off
|
setw -g monitor-activity off
|
||||||
set -g visual-activity off
|
set -g visual-activity off
|
||||||
|
|
||||||
# reattach to user namespace
|
# Rather than constraining window size to the maximum size of any client
|
||||||
# set-option -g default-command "reattach-to-user-namespace -l zsh"
|
# connected to the *session*, constrain window size to the maximum size of any
|
||||||
|
|
||||||
# Rather than constraining window size to the maximum size of any client
|
|
||||||
# connected to the *session*, constrain window size to the maximum size of any
|
|
||||||
# client connected to *that window*. Much more reasonable.
|
# client connected to *that window*. Much more reasonable.
|
||||||
setw -g aggressive-resize on
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
@@ -55,10 +52,6 @@ bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
|
|||||||
# quickly open a new window
|
# quickly open a new window
|
||||||
bind N new-window
|
bind N new-window
|
||||||
|
|
||||||
# Activity
|
|
||||||
setw -g monitor-activity on
|
|
||||||
set -g visual-activity off
|
|
||||||
|
|
||||||
# split window
|
# split window
|
||||||
bind | split-window -h
|
bind | split-window -h
|
||||||
bind - split-window -v
|
bind - split-window -v
|
||||||
@@ -81,11 +74,11 @@ bind -r J resize-pane -D 10
|
|||||||
bind -r K resize-pane -U 10
|
bind -r K resize-pane -U 10
|
||||||
bind -r L resize-pane -R 10
|
bind -r L resize-pane -R 10
|
||||||
|
|
||||||
# enable mouse mode
|
# set mouse mode
|
||||||
setw -g mode-mouse off
|
setw -g mode-mouse on
|
||||||
set -g mouse-select-pane off
|
set -g mouse-select-pane on
|
||||||
set -g mouse-resize-pane off
|
set -g mouse-resize-pane on
|
||||||
set -g mouse-select-window off
|
set -g mouse-select-window on
|
||||||
|
|
||||||
# maximizing and restoring windows
|
# maximizing and restoring windows
|
||||||
unbind Up
|
unbind Up
|
||||||
@@ -103,6 +96,10 @@ bind p paste-buffer
|
|||||||
bind -t vi-copy 'v' begin-selection
|
bind -t vi-copy 'v' begin-selection
|
||||||
bind -t vi-copy 'y' copy-selection
|
bind -t vi-copy 'y' copy-selection
|
||||||
|
|
||||||
|
# Buffers to/from Mac clipboard, yay tmux book from pragprog
|
||||||
|
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
|
||||||
|
bind C-v run "tmux set-buffer $(reattach-to-user-namespace pbpaste); tmux paste-buffer")
|
||||||
|
|
||||||
######################
|
######################
|
||||||
### Color Settings ###
|
### Color Settings ###
|
||||||
######################
|
######################
|
||||||
@@ -162,6 +159,6 @@ set -g window-status-format "#[fg=colour239] #I #W "
|
|||||||
|
|
||||||
# set -g window-status-current-format "#[fg=colour0,bg=colour26]#[fg=colour16,bg=colour26,noreverse,bold] #I #W #[fg=colour26,nobold]"
|
# set -g window-status-current-format "#[fg=colour0,bg=colour26]#[fg=colour16,bg=colour26,noreverse,bold] #I #W #[fg=colour26,nobold]"
|
||||||
set -g window-status-current-format "#[fg=colour0]#[fg=colour202,noreverse,bold] #I #W #[fg=colour26,nobold]"
|
set -g window-status-current-format "#[fg=colour0]#[fg=colour202,noreverse,bold] #I #W #[fg=colour26,nobold]"
|
||||||
set -g status-left $tm_session_name
|
set -g status-left $tm_session_name
|
||||||
set -g status-right $tm_itunes_track' '$tm_rdio_track' '$tm_battery' '$tm_date' '$tm_host
|
set -g status-right $tm_itunes_track' '$tm_rdio_track' '$tm_battery' '$tm_date' '$tm_host
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
" vim settings
|
"M7 vim settings
|
||||||
|
|
||||||
filetype off
|
filetype off
|
||||||
set rtp+=~/.vim/bundle/vundle/
|
set rtp+=~/.vim/bundle/vundle/
|
||||||
@@ -25,6 +25,7 @@ Bundle 'Lokaltog/vim-powerline'
|
|||||||
Bundle 'tpope/vim-ragtag'
|
Bundle 'tpope/vim-ragtag'
|
||||||
Bundle 'tpope/vim-surround'
|
Bundle 'tpope/vim-surround'
|
||||||
Bundle 'duff/vim-scratch'
|
Bundle 'duff/vim-scratch'
|
||||||
|
Bundle 'sjl/vitality.vim'
|
||||||
Bundle 'cakebaker/scss-syntax.vim'
|
Bundle 'cakebaker/scss-syntax.vim'
|
||||||
Bundle 'kchmck/vim-coffee-script'
|
Bundle 'kchmck/vim-coffee-script'
|
||||||
Bundle 'groenewege/vim-less'
|
Bundle 'groenewege/vim-less'
|
||||||
@@ -70,6 +71,10 @@ set shiftwidth=4
|
|||||||
set tabstop=4
|
set tabstop=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
|
|
||||||
|
" if has('mouse')
|
||||||
|
" set mouse=a
|
||||||
|
" endif
|
||||||
|
|
||||||
" faster redrawing
|
" faster redrawing
|
||||||
set ttyfast
|
set ttyfast
|
||||||
|
|
||||||
@@ -118,7 +123,7 @@ set showcmd " show incomplete commands
|
|||||||
set noshowmode " don't show which mode disabled for PowerLine
|
set noshowmode " don't show which mode disabled for PowerLine
|
||||||
set wildmode=list:longest " complete files like a shell
|
set wildmode=list:longest " complete files like a shell
|
||||||
set scrolloff=3 " lines of text around cursor
|
set scrolloff=3 " lines of text around cursor
|
||||||
set shell=/bin/zsh
|
set shell=$SHELL
|
||||||
set ruler " show postiion in file
|
set ruler " show postiion in file
|
||||||
set cmdheight=1 " command bar height
|
set cmdheight=1 " command bar height
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user