Change linux user default login directory
问题 I have used the command usermod -d /home/matt /home/matt/Documents/docs/ to change my linux default login directory to /home/matt/Documents/docs/ , but when i use vim to edit my code, my own configuration about vim didn't work, for example, my tab will equal to 8 spaces not 4 spaces(defined in my .vimrc). The configuration file is .vimrc and is under /home/matt/.vimrc . The following is the content of my .vimrc: set hlsearch set backspace=2 set autoindent set ruler set nu set bg=dark syntax