I am using gvim
on windows. And while editing the _vimrc
file I want to reload them immediately to see the change. How can I do it?
Asked
Active
Viewed 278 times
0

lorem1213
- 433
- 4
- 11
-
`autocmd BufWritePost ~/_vimrc source ~/_vimrc` – phd May 07 '22 at 09:48
-
https://stackoverflow.com/search?q=%5Bvim%5D+reload+vimrc – phd May 07 '22 at 09:49
1 Answers
0
To refresh your _vimrc whilst you are editing it, just use
:so %
which is the shortened form of saying "Source current file".
This will instantly apply your current vimrc but keep in mind that sourcing a new vimrc doesn't undo the effect of the old vimrc in your already open vim sessions.

Stun Brick
- 1,124
- 6
- 17