From 64cd85b6b43b0e1816106dc9bf38a680b3930393 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 12 Aug 2022 21:01:34 +0200 Subject: [PATCH] vimrc: set backup options --- .vim/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index 168ae44..21dc809 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -929,6 +929,13 @@ if !isdirectory(expand(&undodir)) call mkdir(expand(&undodir), 'p') endif +set nobackup +set nowritebackup +set directory=~/.vim/swp// +if !isdirectory(expand(&directory)) + call mkdir(expand(&directory), 'p') +endif + set laststatus=2 " show powerline status bar set t_Co=256