Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 675  / 2 Years ago, thu, january 13, 2022, 11:53:24

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.


More From » preferences

 Answers
4

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



#!/bin/sh
cd $HOME
gvim "$@"


Or you set vim to always change its current directory by adding



cd $HOME/Desktop


to your .vimrc file.


[#38148] Friday, January 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
landarre

Total Points: 254
Total Questions: 96
Total Answers: 109

Location: Burundi
Member since Sun, Apr 16, 2023
1 Year ago
landarre questions
;