diff options
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/.config/tmuxinator/.template.yml | 9 | ||||
-rw-r--r-- | tmux/.tmux.conf | 31 |
2 files changed, 40 insertions, 0 deletions
diff --git a/tmux/.config/tmuxinator/.template.yml b/tmux/.config/tmuxinator/.template.yml new file mode 100644 index 0000000..5d3e4b0 --- /dev/null +++ b/tmux/.config/tmuxinator/.template.yml @@ -0,0 +1,9 @@ +name: <%= @settings["name"] %> +root: <%= @settings["root"] %> + +windows: + - editor: + layout: main-vertical + panes: + - vim + - null diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..d5a5fe3 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,31 @@ +set -g default-terminal "screen-256color" + +# Remove nasty escape time +set -sg escape-time 0 + +# Enable mouse scroll +setw -g mouse on + +# Use C-a as prefix +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# Split panes using | and - +bind | split-window -h +bind - split-window -v +unbind '"' + +# Copy +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'nbind % + +# Vi mode +set-window-option -g mode-keys vi + +set -g main-pane-width 156 + +# Plugins +set -g @plugin 'christoomey/vim-tmux-navigator' + +# Initialize Tmux Plugin Manager +run '~/.tmux/plugins/tpm/tpm' |