I mean, whenever I start and save files using gVim, have it know to save the files into my home directory.
This is annoying because each time I save any file using any program then I save it on Desktop first, and then categorize and move it to their specific folders.
While looking in my home directory, I can't see any hidden files named .vimrc
or .gvimrc
, instead I am seeing a .viminfo
file. Which doesn't seem to have any preference information.
When you launch gvim, it uses your current directory as its current directory. You could change how you launch it by using a longer command or a small script like
Or you set vim to always change its current directory by adding
to your .vimrc file.
Add following to your
~/.gvimrc
(if empty create it):It will change your default save location to your desktop. It will not affect the command line version (
vim
).