summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-10-25 11:33:35 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-10-25 11:33:35 +0200
commitd02b5cb2fcf7173059fb4517fabe61617543c3a3 (patch)
tree8412a0b2d00395782bf135d9dbd129a6302bd442 /.vimrc
parentc8f17e674341906a16ca20a3b95d593b5f27be05 (diff)
downloaddotfiles-d02b5cb2fcf7173059fb4517fabe61617543c3a3.tar.gz
dotfiles-d02b5cb2fcf7173059fb4517fabe61617543c3a3.tar.xz
vimrc: move undo files to central location
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 183aeb0..eeeebed 100644
--- a/.vimrc
+++ b/.vimrc
@@ -37,6 +37,11 @@ set hidden
set display+=lastline
if exists("+undofile")
set undofile
+ if isdirectory($HOME . '/.vim/undo') == 0
+ :silent !mkdir -p ~/.vim/undo > /dev/null 2>&1
+ endif
+ set undodir=~/.vim/undo//
+ set undodir+=.
endif
set wildmenu