From b7da61808d1c8d20614486d224ebd4b6945684d9 Mon Sep 17 00:00:00 2001 From: Jannik Zander Date: Fri, 20 May 2016 21:33:43 +0200 Subject: [PATCH] Save vim temporary files in .cache/vim --- .cache/vim/backup/README.md | 1 + .cache/vim/swap/README.md | 1 + .cache/vim/undo/README.md | 1 + .vimrc | 16 +++++++++++----- 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 .cache/vim/backup/README.md create mode 100644 .cache/vim/swap/README.md create mode 100644 .cache/vim/undo/README.md diff --git a/.cache/vim/backup/README.md b/.cache/vim/backup/README.md new file mode 100644 index 0000000..77b7d2e --- /dev/null +++ b/.cache/vim/backup/README.md @@ -0,0 +1 @@ +# Just an empty folder for vim backup files diff --git a/.cache/vim/swap/README.md b/.cache/vim/swap/README.md new file mode 100644 index 0000000..c5e7c56 --- /dev/null +++ b/.cache/vim/swap/README.md @@ -0,0 +1 @@ +# Just an empty folder for vim swap files diff --git a/.cache/vim/undo/README.md b/.cache/vim/undo/README.md new file mode 100644 index 0000000..f10015a --- /dev/null +++ b/.cache/vim/undo/README.md @@ -0,0 +1 @@ +# Just an empty folder for vim undo files diff --git a/.vimrc b/.vimrc index b2e26bb..a50ab71 100644 --- a/.vimrc +++ b/.vimrc @@ -65,10 +65,10 @@ set smarttab " sw at the start of the line, sts everywhere else setglobal tags=./tags; set timeoutlen=1200 " A little bit more time for macros set ttimeoutlen=50 " Make Esc work faster -"if exists('+undofile') -" set undofile -"endif -set nobackup +if exists('+undofile') + set undofile +endif +"set nobackup set visualbell set virtualedit=block set wildmenu @@ -82,6 +82,11 @@ endif set background=light set number +set undodir=~/.cache/vim/undo " vim will not create this directory. +set directory=~/.cache/vim/swap " vim will not create this directory. +set backupdir=~/.cache/vim/backup " vim will not create this directory. +set viminfo+=n~/.cache/vim/viminfo + " Plugin Settings {{{2 @@ -97,8 +102,9 @@ let g:fzf_launcher = "In_a_new_term_function %s" "let g:airline#extensions#tabline#enabled = 1 let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] -let g:EditorConfig_verbose=1 +let g:EditorConfig_verbose=0 let g:NERDTreeWinSize=30 + " }}}2 " Section: Commands {{{1 "----------------------- -- 2.43.0