summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-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')