aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-03-13 13:42:14 -0600
committerCody Hiar <codyfh@gmail.com>2017-03-13 13:42:14 -0600
commita41417a23f1be3d1f6b564fdacf166c57913c21c (patch)
tree1ad313c0a3b27c8d7e62e27d0243ba674d2533d2
parent64e24515d06b7dabd401e4ddd4993aadba66da30 (diff)
Changing neovim to put HOME in cache folder, keeps command history etc
-rw-r--r--plugin/vim-options.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index aa9b237..c7aa8db 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -95,7 +95,8 @@ highlight SignColumn cterm=NONE ctermfg=0 ctermbg=8
" Vim vs Neovim settings
"-----------------------------------------------------------------------------------------------------------------------
if has('nvim')
- let EditorDir=$HOME.'/.config/nvim/'
+ let $HOME='.vimcache'
+ let EditorDir='/root/.config/nvim/'
silent! execute '!mkdir -p .vimcache/backup'
" Set Backup dirs
set backupdir=.vimcache/backup/