Is there an option I can switch on the init.vim config file to let me keep command history between vim sessions?
If I get you right, it should be persisted by default.
q: to open command line with command history
Vim command history is kept in
viminfo file (
:h viminfo). Neovim uses different thing (
You can override the default location of
shada-file (history) to fix the location of this file by:
You can choose any location for the shada-file. Don't forget to give the user permission to this file:
sudo chown username:username /opt/my.shada
If you want more history, change