Task: Configure sudo to Preserve User's .vimrc Settings
Task: Configure sudo to Preserve User's .vimrc Settings: a task in Terminal-Lego-15k (Harbor dataset). When using sudo vim to edit files, the user's .vimrc settings are not applied because sudo switches to the root user's environment. Your task is to configure the system so that running sudo vim…
The task
When using `sudo vim` to edit files, the user's `.vimrc` settings are not applied because `sudo` switches to the root user's environment. Your task is to configure the system so that running `sudo vim` will still use the original user's `.vimrc` settings.
Part of PrimeIntellect/Terminal-Lego-15k.