Fix tmux copy mode, manage Vim views automatically

This commit is contained in:
Rob Watson 2021-01-12 08:02:00 +01:00
parent c8f0d19a99
commit 050c8b555a
2 changed files with 6 additions and 0 deletions

View File

@ -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-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..."

4
vimrc
View File

@ -63,6 +63,10 @@ set thesaurus=$HOME/Documents/thesaurus/thesaurus_pkg/thesaurus.txt
colorscheme flattened_dark
set background=dark
" Automatically load/save views on files:
au BufWinLeave *.* mkview
au BufWinEnter *.* silent loadview
" Key mappings:
nnoremap j gj
nnoremap k gk