dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 6a1ae61fba0025c374d2f5f26a3e5959b10b153e
parent 39f68bd6a0e8a212e1b346398c151095ed5d2eb9
Author: Lukas Joswiak <lukas@lukasjoswiak.com>
Date:   Wed, 13 May 2020 16:08:01 -0700

Fix buffer forgetfulness

Diffstat:
M.tmux.conf | 2+-
M.vimrc | 13+++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -26,7 +26,7 @@ set -g @resurrect-strategy-vim 'session' # tmux-continuum settings # Restore tmux sessions on boot -set -g @continuum-boot 'on' +set -g @continuum-boot 'off' # Plugins set -g @plugin 'tmux-plugins/tmux-resurrect' diff --git a/.vimrc b/.vimrc @@ -50,6 +50,19 @@ set softtabstop=4 " Enable highlight on search set hlsearch +" Hide buffers instead of abondoning them +set hidden + +" Enable persistent undo +if has('persistent_undo') + let undodir = expand('~/.vim/undo') + if !isdirectory(undodir) + call mkdir(undodir) + endif + let &undodir=undodir + set undofile +endif + " Indent with 2 spaces in cpp files au FileType cpp setlocal shiftwidth=2 softtabstop=2 expandtab