mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 01:56:31 +00:00
Update vim-settings and add tmux-navigator and tmux-line support
This commit is contained in:
parent
ff7205774a
commit
b88282a451
@ -62,3 +62,12 @@ bind -t vi-copy y copy-selection
|
|||||||
if-shell 'test "$(uname -s)" = "Darwin"' 'bind-key y run "tmux show-buffer | reattach-to-user-namespace pbcopy"'
|
if-shell 'test "$(uname -s)" = "Darwin"' 'bind-key y run "tmux show-buffer | reattach-to-user-namespace pbcopy"'
|
||||||
if-shell 'test "$(uname -s)" = "Linux"' 'bind-key y run "tmux show-buffer | xclip -sel clip -i"'
|
if-shell 'test "$(uname -s)" = "Linux"' 'bind-key y run "tmux show-buffer | xclip -sel clip -i"'
|
||||||
|
|
||||||
|
# Auto load tmuxline config for themes
|
||||||
|
if-shell "test -f ~/.tmuxline.conf" "source ~/.tmuxline.conf"
|
||||||
|
|
||||||
|
# smart pane switching with awareness of vim splits
|
||||||
|
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
|
||||||
|
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
|
||||||
|
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
|
||||||
|
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
|
||||||
|
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit e0e4f2c17f04faec547cff81d60ede6b3b0fc0a1
|
Subproject commit 270f8f929b30e2763686f3bf68e2a3df5ef176d4
|
Loading…
Reference in New Issue
Block a user