projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48a1437
)
Change the location of the persistent undo file to $HOME/.cache/vim [Closes: issue927]
author
Ulrich Dangel
<mru@grml.org>
Mon, 8 Nov 2010 16:21:44 +0000
(17:21 +0100)
committer
Ulrich Dangel
<mru@grml.org>
Mon, 8 Nov 2010 16:23:32 +0000
(17:23 +0100)
etc/vim/vimrc
patch
|
blob
|
history
diff --git
a/etc/vim/vimrc
b/etc/vim/vimrc
index
505449c
..
6b5121d
100644
(file)
--- a/
etc/vim/vimrc
+++ b/
etc/vim/vimrc
@@
-248,11
+248,11
@@
if version >= 703
" enable persistent-undo
set undofile
" enable persistent-undo
set undofile
- " store the persistent undo file in ~/.
vim/undo
- set undodir=~/.
vim/undo
/
+ " store the persistent undo file in ~/.
cache/vim
+ set undodir=~/.
cache/vim
/
" create undodir directory if possible and does not exist yet
" create undodir directory if possible and does not exist yet
- let targetdir=$HOME . "/.
vim/undo
"
+ let targetdir=$HOME . "/.
cache/vim
"
if isdirectory(targetdir) != 1 && getftype(targetdir) == "" && exists("*mkdir")
call mkdir(targetdir, "p", 0700)
endif
if isdirectory(targetdir) != 1 && getftype(targetdir) == "" && exists("*mkdir")
call mkdir(targetdir, "p", 0700)
endif