mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 04:39:32 -08:00
added vim-like bindings
This commit is contained in:
parent
e5665f18a9
commit
9b286332ce
1 changed files with 17 additions and 0 deletions
|
@ -12,5 +12,22 @@ in
|
|||
keyMode = "vi";
|
||||
mouse = true;
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
shortcut = "q";
|
||||
escapeTime = 0;
|
||||
extraConfig = ''
|
||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
||||
|
||||
# vim-like pane switching
|
||||
bind -r ^ last-window
|
||||
bind -r k select-pane -U
|
||||
bind -r j select-pane -D
|
||||
bind -r h select-pane -L
|
||||
bind -r l select-pane -R
|
||||
|
||||
# my-neovim-like panel splitting
|
||||
bind -r v split-window -h
|
||||
bind -r s split-window -v
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue