[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/plugged/
vim/.vim/spell/ vim/.vim/spell/
vim/.vim/view/ vim/.vim/view/
vim/.vim/viminfo
nvim/.config/nvim/shada
# Miscellaneous desktop files # Miscellaneous desktop files
desktop/ desktop/
tmux/.config/tmux/plugins 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