From 13c3881488dff891f2d6e5eed169332109b90dfb Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 28 Oct 2020 10:58:04 +0100 Subject: [PATCH] [ADD][VIM] Info file name configuration I don't want them to pollute my HOME --- .gitignore | 2 ++ vim/.vim/plugin/viminfo.vim | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 vim/.vim/plugin/viminfo.vim diff --git a/.gitignore b/.gitignore index dd5048e..28ec684 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/vim/.vim/plugin/viminfo.vim b/vim/.vim/plugin/viminfo.vim new file mode 100644 index 0000000..7b7ab76 --- /dev/null +++ b/vim/.vim/plugin/viminfo.vim @@ -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