[ADD][VIM] Info file name configuration

I don't want them to pollute my HOME
This commit is contained in:
Bruno BELANYI 2020-10-28 10:58:04 +01:00
parent cc28222356
commit 13c3881488
2 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View File

@ -6,6 +6,8 @@ vim/.vim/autoload/plug.vim*
vim/.vim/plugged/
vim/.vim/spell/
vim/.vim/view/
vim/.vim/viminfo
nvim/.config/nvim/shada
# Miscellaneous desktop files
desktop/
tmux/.config/tmux/plugins

View File

@ -0,0 +1,6 @@
" Do not store viminfo/shada files in my HOME
if has('nvim')
"set shadafile=$HOME/.config/nvim/shada
else
set viminfofile=$HOME/.vim/viminfo
endif