问题
I am using Ubuntu on Windows Subsystem for Linux on Windows 10. Recently, I changed my default $HOME directory to a folder in my windows system i.e /mnt/c/Users/.../~ by editing in /etc/passwd. After that, I created a new .vimrc file in my new $HOME directory at ~/, with just two settings:
set tabstop=4 and set shiftwidth=4.
However, I am getting an invalid argument error in bash (this worked perfectly fine prior to changing my home directory):
line 2: E474: Invalid argument: shiftwidth =4;
line 3: E474: Invalid argument: tabstop =4;
Could anyone tell me why this is happening?
来源:https://stackoverflow.com/questions/60407339/invalid-argument-from-vimrc-after-changing-home-directory-in-wsl