To reload the .vimrc file without restarting Vim on Linux/Unix, you can use the :source
command. The syntax is as follows:
bash
:source ~/.vimrc
This command will read the .vimrc file again and apply any changes you have made. The ~/
specifies the home directory of the current user. If your .vimrc file is located elsewhere, replace ~/.vimrc
with the path to your .vimrc file.
This will cause Vim to read and apply the changes in the .vimrc
file. After you have saved your changes to the file, you can use the :source
command to reload the file and apply the changes immediately.