feat(tmux): mappings
This commit is contained in:
parent
2c3e82d3ed
commit
8cb58dcd39
@ -190,6 +190,15 @@ menu Encoding.koi8-u :e ++enc=koi8-u ++ff=unix<CR>
|
||||
map <F8> :emenu Encoding.
|
||||
]])
|
||||
|
||||
|
||||
vim.cmd([[
|
||||
menu Indent.tabs :set noexpandtab tabstop=4 shiftwidth=4<CR>
|
||||
menu Indent.spaces :set expandtab tabstop=4 shiftwidth=4<CR>
|
||||
|
||||
map <F7> :emenu Indent.
|
||||
]])
|
||||
|
||||
|
||||
map("n", "<Leader>cd", "<cmd>colorscheme default<CR>")
|
||||
map("n", "<Leader>cn", "<cmd>colorscheme nightfox<CR>")
|
||||
|
||||
|
||||
@ -152,9 +152,6 @@ bind -n 'M-)' if-shell 'tmux join-pane -d -h -t :10' '' 'break-pane -t 10 -d -n
|
||||
_tmux_new_pane_size="30%"
|
||||
_tmux_main_pane_size="70%"
|
||||
|
||||
# Hide pane
|
||||
bind -n M-q if-shell 'tmux join-pane -l $_tmux_main_pane_size -h -s stash' '' 'break-pane -d -n stash'
|
||||
|
||||
|
||||
# Swapping windows
|
||||
bind -r "<" swap-window -d -t -1
|
||||
@ -168,8 +165,14 @@ bind \\ split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
|
||||
|
||||
# Hide pane
|
||||
bind -n M-q if-shell 'tmux join-pane -l $_tmux_main_pane_size -h -s stash' '' 'break-pane -d -n stash'
|
||||
|
||||
# Default layout size
|
||||
bind -n M-u resize-pane -x $_tmux_main_pane_size
|
||||
bind -n M-r resize-pane -x $_tmux_main_pane_size
|
||||
|
||||
# Swap left pane
|
||||
bind -n M-s swap-pane -t '{left-of}'
|
||||
|
||||
|
||||
# Copy mode
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user