Closed jessebot closed 1 year ago
Another article doing similar things: https://blog.joren.ga/vim-xdg
Done as of v0.12.0. We set the following in our a sourced ~/.config/bash/text_editing.sh
:
Then we also set this in our our new ~/.config/vim/vimrc
:
Now everything seems to work, but you may have to rm
the following files and directories:
~/.viminfo
~/.local/state/vim/viminfo
~/.cache/nvim
~/.local/state/nvim
~/.local/share/nvim
You may also need to run a :PlugInstall
in vim and a PackerSync
in nvim
The XDG specification is pretty good and helps get your dot files organized. Finding info on it, is a bit difficult. It's very old internet because it's freedesktop, but here's some links:
basically we want
~/.vim
to move to~/.config/
and we want~/.vimrc
to go into~/.config/vim
, to get config files into the config directory. What a battle this is with old software :)Found this article called vim respect xdg that is pretty much exactly how to go about this, so I'll plan to do this soonish, because I really like the organization. It makes everything feel tidy.