vim:reload_.vimrc_file_without_restarting_vim
VIM - Reload .vimrc file without restarting vim
:so %
NOTE:
- :so: is short for :source, which reads the content of the specified file and treats it as Vim code.
- %: Stands for the current file name.
- See :h current-file.
Another method
Reload vimrc:
:source $MYVIMRC
Display the current vimrc:
:echo $MYVIMRC
returns:
home/peter/.vimrc
vim/reload_.vimrc_file_without_restarting_vim.txt · Last modified: 2021/02/15 17:53 by peter