commit 7cdb6615af7afeee803a9524a3e8d9ad9ecd80f1
parent b1fc21bbf108cfa694925f41a3ebb14a3df78a80
Author: Lukas Joswiak <lukas@lukasjoswiak.com>
Date: Sat, 18 Apr 2020 16:57:05 -0700
Add tmux session restore
Diffstat:
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/.tmux.conf b/.tmux.conf
@@ -19,3 +19,18 @@ bind l select-pane -R
# Enable mouse for scrolling and pane switching
set -g mouse on
+
+# tmux-resurrect settings
+# Restore vim sessions
+set -g @resurrect-strategy-vim 'session'
+
+# tmux-continuum settings
+# Restore tmux sessions on boot
+set -g @continuum-boot 'on'
+
+# Plugins
+set -g @plugin 'tmux-plugins/tmux-resurrect'
+set -g @plugin 'tmux-plugins/tmux-continuum'
+
+# Initialize tmux plugin manager
+run -b '~/.tmux/plugins/tpm/tpm'
diff --git a/.vimrc b/.vimrc
@@ -3,6 +3,7 @@ call plug#begin()
Plug '/usr/local/opt/fzf'
Plug 'junegunn/fzf.vim'
+Plug 'tpope/vim-obsession'
Plug 'ledger/vim-ledger'
call plug#end()
@@ -14,6 +15,9 @@ nmap ; :Buffers<CR>
nmap <Leader>t :Files<CR>
nmap <Leader>r :Tags<CR>
+" Disable swap files
+set noswapfile
+
" Move between Vim panes
nmap <Leader>h <C-W>h
nmap <Leader>j <C-W>j
@@ -38,6 +42,7 @@ set ruler
set autoindent
+" Indent with spaces
set expandtab
set shiftwidth=4
set softtabstop=4