Fix tmux copy mode, manage Vim views automatically
This commit is contained in:
parent
c8f0d19a99
commit
050c8b555a
|
@ -54,4 +54,6 @@ bind -n S-Right next-window
|
||||||
bind -n C-S-Left swap-window -t -1\; select-window -t -1
|
bind -n C-S-Left swap-window -t -1\; select-window -t -1
|
||||||
bind -n C-S-Right swap-window -t +1\; select-window -t +1
|
bind -n C-S-Right swap-window -t +1\; select-window -t +1
|
||||||
|
|
||||||
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
||||||
|
|
||||||
bind r source-file ~/.tmux.conf \; display "Reloading config..."
|
bind r source-file ~/.tmux.conf \; display "Reloading config..."
|
||||||
|
|
4
vimrc
4
vimrc
|
@ -63,6 +63,10 @@ set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
|
||||||
colorscheme flattened_dark
|
colorscheme flattened_dark
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|
||||||
|
" Automatically load/save views on files:
|
||||||
|
au BufWinLeave *.* mkview
|
||||||
|
au BufWinEnter *.* silent loadview
|
||||||
|
|
||||||
" Key mappings:
|
" Key mappings:
|
||||||
nnoremap j gj
|
nnoremap j gj
|
||||||
nnoremap k gk
|
nnoremap k gk
|
||||||
|
|
Loading…
Reference in New Issue