diff options
author | yushyin <yushyin@saga> | 2015-09-06 23:23:43 +0200 |
---|---|---|
committer | yushyin <yushyin@saga> | 2015-09-06 23:23:43 +0200 |
commit | 0f1117f03203d14e580b7d7c8d647b5f03cd5c73 (patch) | |
tree | 492f6b3a51d2f55fab12cd6ec09595d98c583786 /vim/vimrc | |
parent | cf8590b8ef7a82a4477b18d4565c915f213937e4 (diff) | |
download | dotfiles-0f1117f03203d14e580b7d7c8d647b5f03cd5c73.tar.gz dotfiles-0f1117f03203d14e580b7d7c8d647b5f03cd5c73.tar.xz |
Vim: Set persistent-undo; reorganise cache files
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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') |