summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2015-09-06 23:23:43 +0200
committeryushyin <yushyin@saga>2015-09-06 23:23:43 +0200
commit0f1117f03203d14e580b7d7c8d647b5f03cd5c73 (patch)
tree492f6b3a51d2f55fab12cd6ec09595d98c583786
parentcf8590b8ef7a82a4477b18d4565c915f213937e4 (diff)
downloaddotfiles-0f1117f03203d14e580b7d7c8d647b5f03cd5c73.tar.gz
dotfiles-0f1117f03203d14e580b7d7c8d647b5f03cd5c73.tar.xz
Vim: Set persistent-undo; reorganise cache files
-rw-r--r--vim/vimrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 70ad18d..74dd1a5 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -10,8 +10,10 @@ endif
if !exists($XDG_CACHE_HOME)
let $XDG_CACHE_HOME=expand('~/.cache')
endif
-set directory=$XDG_CACHE_HOME/vim//,/var/tmp//,/tmp//
-set backupdir=$XDG_CACHE_HOME/vim,/var/tmp,/tmp
+
+set directory=$XDG_CACHE_HOME/vim/swp//,/var/tmp//,/tmp//
+set undodir=$XDG_CACHE_HOME/vim/undo//,/var/tmp//,/tmp//
+set backupdir=$XDG_CACHE_HOME/vim/backup,/var/tmp,/tmp
set viminfo+=n$XDG_CACHE_HOME/vim/viminfo
set rtp=$XDG_CONFIG_HOME/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$XDG_CONFIG_HOME/vim/after
@@ -100,6 +102,7 @@ set sta
set sw=4
set ts=4
set ttyfast
+set udf
set wmnu
if has('gui_running')