# HG changeset patch # User Meredith Howard # Date 1498358279 14400 # Node ID 5f49012f8242465bc98a9de96ca9ddb0176c1bd9 # Parent 46f19b7955d84131bbc04520ff70a7afc1959ecc move these into a .cache dir diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -5,6 +5,7 @@ set nocompatible " on windows and not cygwin let g:on_windows = (has('win32') || has('win64')) let g:myvim = $HOME . (g:on_windows ? '/vimfiles' : '/.vim') +let g:vimcache = $HOME . '/.cache/vim' let s:filename = expand('') " Set up Vundle and plugins {{{ @@ -195,18 +196,18 @@ set sessionoptions=buffers,curdir,localo runtime macros/matchit.vim for subdir in ['backup', 'tmp', 'undo'] - if !filewritable(g:myvim . '/var/' . subdir) - call mkdir(g:myvim . '/var/' . subdir, 'p', 0700) + if !filewritable(g:vimcache . '/' . subdir) + call mkdir(g:vimcache . '/' . subdir, 'p', 0700) endif endfor set backup -let &backupdir = g:myvim . '/var/backup//,.' -let &directory = g:myvim . '/var/tmp//,.' +let &backupdir = g:vimcache . '/backup//,.' +let &directory = g:vimcache . '/tmp//,.' if has('persistent_undo') set undofile - let &undodir = g:myvim . '/var/undo//,.' + let &undodir = g:vimcache . '/undo//,.' endif if g:on_windows