Every time I log in with the username debian8
and open a file (whose path is /home/debian8/Desktop/homework/test.txt
) with Vim, the :pwd
command returns /home/debian8
How could I make /home/debian8/Desktop/homework
the current directory? So I don't have to resort to :cd /home/debian8/Desktop/homework
to change it after opening the file.