diff options
-rw-r--r-- | vimrc-full | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -27,6 +27,8 @@ endif | |||
27 | if has('persistent_undo') | 27 | if has('persistent_undo') |
28 | if isdirectory('/dev/shm') | 28 | if isdirectory('/dev/shm') |
29 | set undodir=/dev/shm/ | " save undo file in memory. That is volatile, but fast and we have GIT for longer lasting undos | 29 | set undodir=/dev/shm/ | " save undo file in memory. That is volatile, but fast and we have GIT for longer lasting undos |
30 | set directory=/dev/shm/ | " swap file directory to RAM | ||
31 | set swapfile | ||
30 | elseif isdirectory('/tmp/') | 32 | elseif isdirectory('/tmp/') |
31 | set undodir=/tmp/ | 33 | set undodir=/tmp/ |
32 | endif | 34 | endif |