summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <*>2016-10-07 18:07:10 +0200
committerjohannst <*>2016-10-07 18:07:10 +0200
commit7b109147f6652c22bd7410619475e8b8b80f812f (patch)
treeaf08aa4aa1c8b0cb5fddae4802f2c6436a345dd4
parent040015555f983c619f982674214b0bc202b7954a (diff)
downloaddotfiles-7b109147f6652c22bd7410619475e8b8b80f812f.tar.gz
dotfiles-7b109147f6652c22bd7410619475e8b8b80f812f.zip
added tmux keybindings for split movement
-rw-r--r--.tmux.conf21
-rw-r--r--.vim/vimrc_files/highlights.vim8
2 files changed, 19 insertions, 10 deletions
diff --git a/.tmux.conf b/.tmux.conf
index 4446c03..93b92cc 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -4,28 +4,33 @@
set -g prefix C-x
bind-key a send-prefix # for nested tmux sessions
# re-source tmux.conf
-bind-key -T prefix r source-file ~/.tmux.conf
+bind-key r source-file ~/.tmux.conf
# terminate tmux
-bind-key -T prefix C-q confirm-before -p "kill-window #W? (y/n)" kill-window
+bind-key C-q confirm-before -p "kill-window #W? (y/n)" kill-window
# maximize current pane
-bind-key -T prefix f resize-pane -Z # overwrites find window
+bind-key f resize-pane -Z # overwrites find window
# resolved key forwarding problem
set-window-option -g xterm-keys on
# had some struggle with vim key delay
-#set -s escape-time 0
+set -s escape-time 0
# mouse support
setw -g mouse on
# default TERM
set -g default-terminal "screen-256color"
# split settings
-bind-key -T prefix v split-window -h
-bind-key -T prefix h split-window
+bind-key s split-window -h
+bind-key h split-window
+# move between splits
+bind-key k select-pane -U
+bind-key j select-pane -D
+bind-key h select-pane -L
+bind-key l select-pane -R
# Copy mode settings
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
-bind-key -T prefix C-v copy-mode
-bind-key -T prefix p paste-buffer # overwrites previous window
+bind-key C-v copy-mode
+bind-key p paste-buffer # overwrites previous window
### Colour Settings
diff --git a/.vim/vimrc_files/highlights.vim b/.vim/vimrc_files/highlights.vim
index 6d1f7d2..02371e9 100644
--- a/.vim/vimrc_files/highlights.vim
+++ b/.vim/vimrc_files/highlights.vim
@@ -6,10 +6,14 @@
" autocmd! ColorScheme * hi clear CursorLine
" augroup END
+"hi LineNr ctermfg=208
+
" Highlight color of current line
-hi CursorLineNR cterm=bold ctermfg=226
+hi CursorLineNR cterm=bold ctermfg=255 ctermbg=208
+"hi CursorLineNR cterm=bold ctermfg=226
augroup CLNRSet
- autocmd! ColorScheme * hi CursorLineNR cterm=bold ctermfg=226
+ autocmd! ColorScheme * hi CursorLineNR cterm=bold ctermfg=255 ctermbg=208
+ "autocmd! ColorScheme * hi CursorLineNR cterm=bold ctermfg=226
augroup END
" Highlight status line