From a41417a23f1be3d1f6b564fdacf166c57913c21c Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 13 Mar 2017 13:42:14 -0600 Subject: Changing neovim to put HOME in cache folder, keeps command history etc --- plugin/vim-options.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/ -- cgit v1.2.3